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 abfb1d2 commit 6c3a8a0Copy full SHA for 6c3a8a0
1 file changed
Lib/tarfile.py
@@ -480,7 +480,7 @@ def _init_read_gz(self):
480
# taken from gzip.GzipFile with some alterations
481
if self.__read(2) != b"\037\213":
482
raise ReadError("not a gzip file")
483
- method, flag = struct.unpack("<BB4x", self.__read(8))
+ method, flag = struct.unpack("<BB6x", self.__read(8))
484
if method != 8:
485
raise CompressionError("unsupported compression method")
486
0 commit comments