Fixes the last problem mentioned in issue1202.

This commit is contained in:
Gregory P. Smith 2009-06-26 07:50:21 +00:00
parent 595f7a5bf9
commit 2662733bce
1 changed files with 1 additions and 1 deletions

View File

@ -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