mirror of
https://github.com/python/cpython.git
synced 2025-11-20 10:57:44 +00:00
gh-89668: Optimize ZipFile file header processing algorithm to avoid unneeded IO(gh-25966)
This commit is contained in:
parent
90e7230073
commit
26a162baef
1 changed files with 1 additions and 1 deletions
|
|
@ -1564,7 +1564,7 @@ class ZipFile:
|
|||
|
||||
fname = zef_file.read(fheader[_FH_FILENAME_LENGTH])
|
||||
if fheader[_FH_EXTRA_FIELD_LENGTH]:
|
||||
zef_file.read(fheader[_FH_EXTRA_FIELD_LENGTH])
|
||||
zef_file.seek(fheader[_FH_EXTRA_FIELD_LENGTH], whence=1)
|
||||
|
||||
if zinfo.flag_bits & _MASK_COMPRESSED_PATCH:
|
||||
# Zip 2.7: compressed patched data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue