diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-05-01 08:44:08 +0200 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-05-01 08:44:08 +0200 |
commit | 2a2ce328fb32424e9ddef853211d5d877eb3d5b5 (patch) | |
tree | 4fc7fb66a191778baa76f9234486e33681232209 /Lib/zipfile.py | |
parent | b3260f08cf9066367f63dccbac60798d555e52b9 (diff) | |
download | cpython-git-2a2ce328fb32424e9ddef853211d5d877eb3d5b5.tar.gz |
Recognize unsupported feature "compressed patch data set" from zip 2.7.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r-- | Lib/zipfile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index ff7f30fd4f..fa6a433076 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -1053,6 +1053,10 @@ class ZipFile: if fheader[_FH_EXTRA_FIELD_LENGTH]: zef_file.read(fheader[_FH_EXTRA_FIELD_LENGTH]) + if zinfo.flag_bits & 0x20: + # Zip 2.7: compressed patched data + raise NotImplementedError("compressed patched data (flag bit 5)") + if zinfo.flag_bits & 0x800: # UTF-8 filename fname_str = fname.decode("utf-8") |