]> granicus.if.org Git - python/commitdiff
ZipFile.close(): Kill the other struct.pack deprecation
authorTim Peters <tim.peters@gmail.com>
Mon, 31 Jul 2006 02:53:03 +0000 (02:53 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 31 Jul 2006 02:53:03 +0000 (02:53 +0000)
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.

Lib/zipfile.py

index 2819f1bd1489dcecc6b2f2e41d19b2186b401629..5c3fff3e74ed32c6e248f7b950415cfdb80b6452 100644 (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