]> granicus.if.org Git - python/commitdiff
Merged revisions 73565 via svnmerge from
authorGregory P. Smith <greg@mad-scientist.com>
Fri, 26 Jun 2009 08:19:19 +0000 (08:19 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Fri, 26 Jun 2009 08:19:19 +0000 (08:19 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73565 | gregory.p.smith | 2009-06-26 00:50:21 -0700 (Fri, 26 Jun 2009) | 2 lines

  Fixes the last problem mentioned in issue1202.
........

Lib/zipfile.py
Misc/NEWS

index a50a458336146b5b410d6fe06bcc4406a0e5f78d..e2ede459405d2f14c9449dbdad944592e70d68e8 100644 (file)
@@ -1110,7 +1110,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
index 06cd333a3bda03bf6701558fad2230c3c893f516..8cbdb19dd9ac7b65d486f6135443c56524bc5084 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -128,6 +128,9 @@ Library
   makeunicodedata.py and regenerated the Unicode database (This fixes
   u'\u1d79'.lower() == '\x00').
 
+- Issue #1202: zipfile module would cause a DeprecationWarning when storing
+  files with a CRC32 > 2**31-1.
+
 Extension Modules
 -----------------