diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2009-06-26 07:50:21 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2009-06-26 07:50:21 (GMT) |
commit | 2662733bce535d9a8bbd846f00598912d9328782 (patch) | |
tree | 1229ff2d01f993da1300ace2a16fb494a931e125 | |
parent | 595f7a5bf959f97b5d889ab5c7f86c06e36e8dfb (diff) | |
download | cpython-2662733bce535d9a8bbd846f00598912d9328782.zip cpython-2662733bce535d9a8bbd846f00598912d9328782.tar.gz cpython-2662733bce535d9a8bbd846f00598912d9328782.tar.bz2 |
Fixes the last problem mentioned in issue1202.
-rw-r--r-- | Lib/zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/zipfile.py b/Lib/zipfile.py index 68885f9..6ee9923 100644 --- a/Lib/zipfile.py +++ b/Lib/zipfile.py @@ -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 |