Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 658f352

Browse files
committed
#11981: remove duplicate line. Patch by Johan Euphrosine.
1 parent e0321f4 commit 658f352

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Lib/zipfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,6 @@ def writestr(self, zinfo_or_arcname, data, compress_type=None):
13911391
zinfo.compress_size = len(data) # Compressed size
13921392
else:
13931393
zinfo.compress_size = zinfo.file_size
1394-
zinfo.header_offset = self.fp.tell() # Start of header data
13951394
self.fp.write(zinfo.FileHeader())
13961395
self.fp.write(data)
13971396
self.fp.flush()

0 commit comments

Comments
 (0)