From: Georg Brandl Date: Sat, 18 Feb 2006 21:10:59 +0000 (+0000) Subject: Patch #1373643: The chunk module can now read chunks larger than X-Git-Tag: v2.4.3c1~75 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b02be7e692d7820c7678842e51ff975e7bc7eab3;p=thirdparty%2FPython%2Fcpython.git Patch #1373643: The chunk module can now read chunks larger than two gigabytes. --- diff --git a/Lib/chunk.py b/Lib/chunk.py index bda965fd6f0a..a8fbc1051f3e 100644 --- a/Lib/chunk.py +++ b/Lib/chunk.py @@ -62,7 +62,7 @@ class Chunk: if len(self.chunkname) < 4: raise EOFError try: - self.chunksize = struct.unpack(strflag+'l', file.read(4))[0] + self.chunksize = struct.unpack(strflag+'L', file.read(4))[0] except struct.error: raise EOFError if inclheader: diff --git a/Misc/NEWS b/Misc/NEWS index 4d14c9a5ac7c..8c3dc3894808 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -74,6 +74,9 @@ Extension Modules Library ------- +- Patch #1373643: The chunk module can now read chunks larger than + two gigabytes. + - Bug #1430298: It is now possible to send a mail with an empty return address using smtplib.