mirror of https://github.com/python/cpython
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
|
@ -664,7 +664,7 @@ class ZipFile:
|
||||||
|
|
||||||
if zinfo.header_offset > ZIP64_LIMIT:
|
if zinfo.header_offset > ZIP64_LIMIT:
|
||||||
extra.append(zinfo.header_offset)
|
extra.append(zinfo.header_offset)
|
||||||
header_offset = 0xffffffff #-1
|
header_offset = -1 # struct "l" format: 32 one bits
|
||||||
else:
|
else:
|
||||||
header_offset = zinfo.header_offset
|
header_offset = zinfo.header_offset
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue