diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-17 16:56:15 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2012-11-17 16:56:15 (GMT) |
commit | 658f3522c638ec43cef52f6599ba47dd7c14a72a (patch) | |
tree | ea9dad479ffce6eceebae999b36bd57c0e521156 | |
parent | e0321f45fbc45bd06ca256144f6f48dc1347812a (diff) | |
download | cpython-658f3522c638ec43cef52f6599ba47dd7c14a72a.zip cpython-658f3522c638ec43cef52f6599ba47dd7c14a72a.tar.gz cpython-658f3522c638ec43cef52f6599ba47dd7c14a72a.tar.bz2 |
#11981: remove duplicate line. Patch by Johan Euphrosine.
-rw-r--r-- | Lib/zipfile.py | 1 |
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() |