From: Serhiy Storchaka Date: Mon, 8 Apr 2013 19:33:55 +0000 (+0300) Subject: Close #17666: Fix reading gzip files with an extra field. X-Git-Tag: v2.7.5~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=371432b961b7f5b410c13b0022e23111115f1d59;p=thirdparty%2FPython%2Fcpython.git Close #17666: Fix reading gzip files with an extra field. --- diff --git a/Lib/gzip.py b/Lib/gzip.py index a2f23679fa8c..99b2d3ef0789 100644 --- a/Lib/gzip.py +++ b/Lib/gzip.py @@ -202,7 +202,8 @@ class GzipFile(io.BufferedIOBase): if flag & FEXTRA: # Read & discard the extra field, if present - self._read_exact(struct.unpack("