Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7b4e7c2

Browse files
committed
Patch #1373643: The chunk module can now read chunks larger than
two gigabytes.
1 parent 2d65b55 commit 7b4e7c2

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/chunk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def __init__(self, file, align=True, bigendian=True, inclheader=False):
6262
if len(self.chunkname) < 4:
6363
raise EOFError
6464
try:
65-
self.chunksize = struct.unpack(strflag+'l', file.read(4))[0]
65+
self.chunksize = struct.unpack(strflag+'L', file.read(4))[0]
6666
except struct.error:
6767
raise EOFError
6868
if inclheader:

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ Extension Modules
363363
Library
364364
-------
365365

366+
- Patch #1373643: The chunk module can now read chunks larger than
367+
two gigabytes.
368+
366369
- Patch #1417555: SimpleHTTPServer now returns Last-Modified headers.
367370

368371
- Bug #1430298: It is now possible to send a mail with an empty

0 commit comments

Comments
 (0)