]> granicus.if.org Git - python/commitdiff
Patch #1373643: The chunk module can now read chunks larger than
authorGeorg Brandl <georg@python.org>
Sat, 18 Feb 2006 21:10:56 +0000 (21:10 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 18 Feb 2006 21:10:56 +0000 (21:10 +0000)
two gigabytes.

Lib/chunk.py
Misc/NEWS

index bda965fd6f0a2b5a56abfc76bd24d62e482a3bb9..a8fbc1051f3e44794427408fa0c4dbc89b3c9103 100644 (file)
@@ -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:
index 073ef6ce8c01ccbc4f7ff43021a6d068e0254477..619549d722cfac71b1edf9a9874a29d0b17e5fb3 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -363,6 +363,9 @@ Extension Modules
 Library
 -------
 
+- Patch #1373643: The chunk module can now read chunks larger than
+  two gigabytes.
+
 - Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.
 
 - Bug #1430298: It is now possible to send a mail with an empty