summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2012-11-17 16:56:15 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2012-11-17 16:56:15 (GMT)
commit658f3522c638ec43cef52f6599ba47dd7c14a72a (patch)
treeea9dad479ffce6eceebae999b36bd57c0e521156
parente0321f45fbc45bd06ca256144f6f48dc1347812a (diff)
downloadcpython-658f3522c638ec43cef52f6599ba47dd7c14a72a.zip
cpython-658f3522c638ec43cef52f6599ba47dd7c14a72a.tar.gz
cpython-658f3522c638ec43cef52f6599ba47dd7c14a72a.tar.bz2
#11981: remove duplicate line. Patch by Johan Euphrosine.
-rw-r--r--Lib/zipfile.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py
index 209dc4a..f2cfe98 100644
--- a/Lib/zipfile.py
+++ b/Lib/zipfile.py
@@ -1391,7 +1391,6 @@ class ZipFile:
zinfo.compress_size = len(data) # Compressed size
else:
zinfo.compress_size = zinfo.file_size
- zinfo.header_offset = self.fp.tell() # Start of header data
self.fp.write(zinfo.FileHeader())
self.fp.write(data)
self.fp.flush()