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.3.2~147 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e69f0085e5365347bf00f4ed08d07e5f4785a96;p=python Close #17666: Fix reading gzip files with an extra field. --- diff --git a/Lib/gzip.py b/Lib/gzip.py index d7da02ca1b..a1f13b491d 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -302,7 +302,8 @@ class GzipFile(io.BufferedIOBase): if flag & FEXTRA: # Read & discard the extra field, if present - self._read_exact(struct.unpack("