Skip to content

Commit 6c3a8a0

Browse files
committed
fix review code
1 parent abfb1d2 commit 6c3a8a0

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
@@ -480,7 +480,7 @@ def _init_read_gz(self):
480480
# taken from gzip.GzipFile with some alterations
481481
if self.__read(2) != b"\037\213":
482482
raise ReadError("not a gzip file")
483-
method, flag = struct.unpack("<BB4x", self.__read(8))
483+
method, flag = struct.unpack("<BB6x", self.__read(8))
484484
if method != 8:
485485
raise CompressionError("unsupported compression method")
486486

0 commit comments

Comments
 (0)