mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
#11981: remove duplicate line. Patch by Johan Euphrosine.
This commit is contained in:
parent
e0321f45fb
commit
658f3522c6
1 changed files with 0 additions and 1 deletions
|
|
@ -1391,7 +1391,6 @@ class ZipFile:
|
||||||
zinfo.compress_size = len(data) # Compressed size
|
zinfo.compress_size = len(data) # Compressed size
|
||||||
else:
|
else:
|
||||||
zinfo.compress_size = zinfo.file_size
|
zinfo.compress_size = zinfo.file_size
|
||||||
zinfo.header_offset = self.fp.tell() # Start of header data
|
|
||||||
self.fp.write(zinfo.FileHeader())
|
self.fp.write(zinfo.FileHeader())
|
||||||
self.fp.write(data)
|
self.fp.write(data)
|
||||||
self.fp.flush()
|
self.fp.flush()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue