From 658f3522c638ec43cef52f6599ba47dd7c14a72a Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sat, 17 Nov 2012 18:56:15 +0200 Subject: [PATCH] #11981: remove duplicate line. Patch by Johan Euphrosine. --- Lib/zipfile.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 209dc4a0f30..f2cfe98c787 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()