Skip to content

Commit

Permalink
fix review code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheaoli committed Nov 26, 2024
1 parent abfb1d2 commit 6c3a8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def _init_read_gz(self):
# taken from gzip.GzipFile with some alterations
if self.__read(2) != b"\037\213":
raise ReadError("not a gzip file")
method, flag = struct.unpack("<BB4x", self.__read(8))
method, flag = struct.unpack("<BB6x", self.__read(8))
if method != 8:
raise CompressionError("unsupported compression method")

Expand Down

0 comments on commit 6c3a8a0

Please sign in to comment.