mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fixes the last problem mentioned in issue1202.
This commit is contained in:
parent
595f7a5bf9
commit
2662733bce
1 changed files with 1 additions and 1 deletions
|
@ -1121,7 +1121,7 @@ class ZipFile:
|
|||
self.fp.flush()
|
||||
if zinfo.flag_bits & 0x08:
|
||||
# Write CRC and file sizes after the file data
|
||||
self.fp.write(struct.pack("<lLL", zinfo.CRC, zinfo.compress_size,
|
||||
self.fp.write(struct.pack("<LLL", zinfo.CRC, zinfo.compress_size,
|
||||
zinfo.file_size))
|
||||
self.filelist.append(zinfo)
|
||||
self.NameToInfo[zinfo.filename] = zinfo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue