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 db6aa8f commit d2bc9b4Copy full SHA for d2bc9b4
1 file changed
Lib/tarfile.py
@@ -490,7 +490,7 @@ def _init_read_gz(self):
490
# taken from gzip.GzipFile with some alterations
491
if self.__read(2) != b"\037\213":
492
raise ReadError("not a gzip file")
493
- method, flag = struct.unpack("<BB4x", self.__read(8))
+ method, flag = struct.unpack("<BB6x", self.__read(8))
494
if method != 8:
495
raise CompressionError("unsupported compression method")
496
0 commit comments