From: Ezio Melotti Date: Sat, 17 Nov 2012 16:56:15 +0000 (+0200) Subject: #11981: remove duplicate line. Patch by Johan Euphrosine. X-Git-Tag: v3.4.0a1~1994 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=658f3522c638ec43cef52f6599ba47dd7c14a72a;p=thirdparty%2FPython%2Fcpython.git #11981: remove duplicate line. Patch by Johan Euphrosine. --- diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 209dc4a0f30b..f2cfe98c7872 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()