summaryrefslogtreecommitdiffstats
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-07-31 02:53:03 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-07-31 02:53:03 (GMT)
commitf79c32dbfb063703a0474b13dd87bbaa4587d5e6 (patch)
tree6e0fb0048d257071171e08cdbbc8867c2a0f37ea /Lib/zipfile.py
parent352bf0d7ee71d401bc2d001b27c3d71c1074fc98 (diff)
downloadcpython-f79c32dbfb063703a0474b13dd87bbaa4587d5e6.zip
cpython-f79c32dbfb063703a0474b13dd87bbaa4587d5e6.tar.gz
cpython-f79c32dbfb063703a0474b13dd87bbaa4587d5e6.tar.bz2
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.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 2819f1b..5c3fff3 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -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