mirror of https://github.com/python/cpython
gh-89668: Optimize ZipFile file header processing algorithm to avoid unneeded IO(gh-25966)
This commit is contained in:
parent
90e7230073
commit
26a162baef
|
@ -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…
Reference in New Issue