mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merge alpha100 branch back to main trunk
This commit is contained in:
parent
2979b01ff8
commit
b6775db241
176 changed files with 5302 additions and 3668 deletions
|
@ -179,7 +179,10 @@ def _read_short(file):
|
|||
|
||||
def _read_string(file):
|
||||
length = ord(file.read(1))
|
||||
data = file.read(length)
|
||||
if length == 0:
|
||||
data = ''
|
||||
else:
|
||||
data = file.read(length)
|
||||
if length & 1 == 0:
|
||||
dummy = file.read(1)
|
||||
return data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue