We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e672d59 commit a60666bCopy full SHA for a60666b
1 file changed
python_anvil/models.py
@@ -29,15 +29,8 @@ def _iterator_to_buffered_reader(self, value):
29
except StopIteration:
30
# Create a BytesIO with the content
31
bio = BytesIO(bytes(content))
32
- # Get the total length
33
- bio.seek(0, 2) # Seek to end
34
- total_length = bio.tell()
35
- bio.seek(0) # Reset to start
36
-
37
# Create a BufferedReader with the content
38
reader = BufferedReader(bio) # type: ignore[arg-type]
39
- # Add a length attribute that requests_toolbelt can use
40
- reader.len = total_length # type: ignore[attr-defined]
41
return reader
42
43
def _check_if_serialization_iterator(self, value):
0 commit comments