We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6807e9d commit 41f1cdcCopy full SHA for 41f1cdc
1 file changed
Lib/gzip.py
@@ -610,10 +610,10 @@ def read(self, size=-1):
610
# Read a chunk of data from the file
611
if self._decompressor.needs_input:
612
buf = self._fp.read(READ_BUFFER_SIZE)
613
- uncompress = self._decompressor.decompress(buf, size)
614
else:
615
- uncompress = self._decompressor.decompress(b"", size)
+ buf = b""
616
+ uncompress = self._decompressor.decompress(buf, size)
617
if self._decompressor.unused_data != b"":
618
# Prepend the already read bytes to the fileobj so they can
619
# be seen by _read_eof() and _read_gzip_header()
0 commit comments