[Python-checkins] r50996 - python/trunk/Lib/zipfile.py

tim.peters python-checkins at python.org
Mon Jul 31 04:53:03 CEST 2006


Author: tim.peters
Date: Mon Jul 31 04:53:03 2006
New Revision: 50996

Modified:
   python/trunk/Lib/zipfile.py
Log:
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.


Modified: python/trunk/Lib/zipfile.py
==============================================================================
--- python/trunk/Lib/zipfile.py	(original)
+++ python/trunk/Lib/zipfile.py	Mon Jul 31 04:53:03 2006
@@ -664,7 +664,7 @@
 
                 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
 


More information about the Python-checkins mailing list