changeset: 83732:c31ff361cde3 branch: 3.2 parent: 83565:64627891ca23 user: Serhiy Storchaka date: Mon Apr 08 22:35:02 2013 +0300 files: Lib/gzip.py Lib/test/test_gzip.py Misc/NEWS description: Close #17666: Fix reading gzip files with an extra field. diff -r 64627891ca23 -r c31ff361cde3 Lib/gzip.py --- a/Lib/gzip.py Tue Apr 30 00:57:18 2013 -0700 +++ b/Lib/gzip.py Mon Apr 08 22:35:02 2013 +0300 @@ -280,7 +280,8 @@ if flag & FEXTRA: # Read & discard the extra field, if present - self._read_exact(struct.unpack("