summaryrefslogtreecommitdiff
path: root/Lib/zipfile.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-07-31 02:40:23 +0000
committerTim Peters <tim.peters@gmail.com>2006-07-31 02:40:23 +0000
commitc4f366b4b998e0883c54d6750c441f262ecc7e72 (patch)
tree0d17ce56c36697e2034036b924095ebf8eb061e6 /Lib/zipfile.py
parent28efff69de78739e67807b4de77e829155555f3e (diff)
downloadcpython-c4f366b4b998e0883c54d6750c441f262ecc7e72.tar.gz
ZipFile.close(): Killed one of the struct.pack deprecation
warnings on Win32. Also added an XXX about the line: pos3 = self.fp.tell() `pos3` is never referenced, and I have no idea what the code intended to do instead.
Diffstat (limited to 'Lib/zipfile.py')
-rw-r--r--Lib/zipfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 865267a7cc..2819f1bd14 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -708,9 +708,10 @@ class ZipFile:
stringEndArchive64Locator, 0, pos2, 1)
self.fp.write(zip64locrec)
+ # XXX Why is `pos3` computed next? It's never referenced.
pos3 = self.fp.tell()
endrec = struct.pack(structEndArchive, stringEndArchive,
- 0, 0, count, count, pos2 - pos1, 0xffffffff, 0) # -1, 0)
+ 0, 0, count, count, pos2 - pos1, -1, 0)
self.fp.write(endrec)
else: