mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
ZipFile.close(): Kill the other struct.pack deprecation
warning on Windows. Afraid I can't detect a pattern to when the pack formats decide to use a signed or unsigned format code -- appears nearly arbitrary to my eyes. So I left all the pack formats alone and changed the special-case data values instead.
This commit is contained in:
parent
352bf0d7ee
commit
f79c32dbfb
1 changed files with 1 additions and 1 deletions
|
@ -664,7 +664,7 @@ class ZipFile:
|
|||
|
||||
if zinfo.header_offset > ZIP64_LIMIT:
|
||||
extra.append(zinfo.header_offset)
|
||||
header_offset = 0xffffffff #-1
|
||||
header_offset = -1 # struct "l" format: 32 one bits
|
||||
else:
|
||||
header_offset = zinfo.header_offset
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue