From: Serhiy Storchaka Date: Mon, 8 Apr 2013 19:35:02 +0000 (+0300) Subject: Close #17666: Fix reading gzip files with an extra field. X-Git-Tag: v3.2.5~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6df938fefd5b51d85a45cf3f29f60ee7bb21edf;p=python Close #17666: Fix reading gzip files with an extra field. --- diff --git a/Lib/gzip.py b/Lib/gzip.py index 8fb1ed06c9..0adfd3fdf8 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -280,7 +280,8 @@ class GzipFile(io.BufferedIOBase): if flag & FEXTRA: # Read & discard the extra field, if present - self._read_exact(struct.unpack("