Skip to content

Commit f19a4f1

Browse files
Update streams.py
1 parent fb51f56 commit f19a4f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

aiohttp/streams.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,11 +535,7 @@ async def readany(self) -> bytes:
535535
return b""
536536

537537
async def readchunk(self) -> Tuple[bytes, bool]:
538-
# if we return (b"", True) right away
539-
# then iter_chunks() will loop forever because it expects (b"", False)
540-
# this code makes sure that we yield (b"", False) first
541538
if not self._read_eof_chunk:
542-
# do this only once
543539
self._read_eof_chunk = True
544540
return (b"", False)
545541

0 commit comments

Comments
 (0)