mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Patch #1373643: The chunk module can now read chunks larger than
two gigabytes.
This commit is contained in:
parent
2d65b5542b
commit
7b4e7c24df
2 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue