Skip to content

Commit d2bc9b4

Browse files
Zheaoliserhiy-storchaka
authored andcommitted
fix review code
1 parent db6aa8f commit d2bc9b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def _init_read_gz(self):
490490
# taken from gzip.GzipFile with some alterations
491491
if self.__read(2) != b"\037\213":
492492
raise ReadError("not a gzip file")
493-
method, flag = struct.unpack("<BB4x", self.__read(8))
493+
method, flag = struct.unpack("<BB6x", self.__read(8))
494494
if method != 8:
495495
raise CompressionError("unsupported compression method")
496496

0 commit comments

Comments
 (0)