[Python-checkins] r73568 - in python/branches/release26-maint: Lib/zipfile.py Misc/NEWS
gregory.p.smith
python-checkins at python.org
Fri Jun 26 10:19:19 CEST 2009
Author: gregory.p.smith
Date: Fri Jun 26 10:19:19 2009
New Revision: 73568
Log:
Merged revisions 73565 via svnmerge from
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.
........
Modified:
python/branches/release26-maint/ (props changed)
python/branches/release26-maint/Lib/zipfile.py
python/branches/release26-maint/Misc/NEWS
Modified: python/branches/release26-maint/Lib/zipfile.py
==============================================================================
--- python/branches/release26-maint/Lib/zipfile.py (original)
+++ python/branches/release26-maint/Lib/zipfile.py Fri Jun 26 10:19:19 2009
@@ -1110,7 +1110,7 @@
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
Modified: python/branches/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS (original)
+++ python/branches/release26-maint/Misc/NEWS Fri Jun 26 10:19:19 2009
@@ -128,6 +128,9 @@
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
-----------------
More information about the Python-checkins
mailing list