Skip to content

Commit e04a068

Browse files
committed
Remove unused variables
1 parent d445400 commit e04a068

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/isal/igzip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ def compress(data, compresslevel=_COMPRESS_LEVEL_BEST, *, mtime=None):
236236
def _gzip_header_end(data: bytes) -> int:
237237
if len(data) < 10:
238238
raise ValueError("Gzip header should be 10 bytes or more")
239-
magic, method, flags, mtime, xfl, os = struct.unpack("<HBBIBB", data[:10], )
239+
# We are not interested in mtime, xfl and os flags.
240+
magic, method, flags = struct.unpack("<HBB", data[:4])
240241
if magic != 0x8b1f:
241242
raise BadGzipFile(f"Not a gzipped file ({repr(data[:2])})")
242243
if method != 8:

0 commit comments

Comments
 (0)