mirror of https://github.com/python/cpython
#11981: remove duplicate line. Patch by Johan Euphrosine.
This commit is contained in:
parent
e0321f45fb
commit
658f3522c6
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue