Skip to content

Commit a60666b

Browse files
author
Cyrus Radfar
committed
Removed unneeded logic
1 parent e672d59 commit a60666b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

python_anvil/models.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,8 @@ def _iterator_to_buffered_reader(self, value):
2929
except StopIteration:
3030
# Create a BytesIO with the content
3131
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-
3732
# Create a BufferedReader with the content
3833
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]
4134
return reader
4235

4336
def _check_if_serialization_iterator(self, value):

0 commit comments

Comments
 (0)