Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit b987f77

Browse files
Merge pull request #9 from SelfHacked/fix-s3-readline
Use chunk reader to iterate through lines in S3 file.
2 parents a99285d + 5902289 commit b987f77

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

stream/io/s3.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ def read(self, n: int = -1) -> bytes:
169169
return super().read(n=n)
170170

171171
def readline(self, limit: int = -1) -> bytes:
172-
if self._lines:
173-
return super().readline(limit=limit)
174-
175172
try:
176173
self.__load_current_chunk()
177174
except StopIteration:

0 commit comments

Comments
 (0)