Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ca14ab

Browse files
author
georg.brandl
committedFeb 18, 2006
Patch #1373643: The chunk module can now read chunks larger than
two gigabytes. git-svn-id: http://svn.python.org/projects/python/trunk@42464 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 9241988 commit 9ca14ab

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎Lib/chunk.py

+1-1
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

+3
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)
Please sign in to comment.