mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
fix review code
This commit is contained in:
parent
abfb1d2014
commit
6c3a8a09de
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ class _Stream:
|
|||
# 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")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue