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.
2 parents 33d07f4 + 28eac9a commit 962e598Copy full SHA for 962e598
1 file changed
Lib/gzip.py
@@ -611,10 +611,10 @@ def read(self, size=-1):
611
# Read a chunk of data from the file
612
if self._decompressor.needs_input:
613
buf = self._fp.read(READ_BUFFER_SIZE)
614
- uncompress = self._decompressor.decompress(buf, size)
615
else:
616
- uncompress = self._decompressor.decompress(b"", size)
+ buf = b""
617
+ uncompress = self._decompressor.decompress(buf, size)
618
if self._decompressor.unused_data != b"":
619
# Prepend the already read bytes to the fileobj so they can
620
# be seen by _read_eof() and _read_gzip_header()
0 commit comments