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:
Tim Peters 2006-07-31 02:53:03 +00:00
parent 352bf0d7ee
commit f79c32dbfb
1 changed files with 1 additions and 1 deletions

View File

@ -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