mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Recognize unsupported feature "compressed patch data set" from zip 2.7.
This commit is contained in:
parent
b3260f08cf
commit
2a2ce328fb
1 changed files with 4 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue