mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Don't specify base 0 to string.atoi when unpickling integers in text
mode. The pickler always uses base 10 so the default base should be fine. (The base gets us in trouble when there's no strop module, as the atoi() in string.py only supports base 10. This is for JPython.)
This commit is contained in:
parent
87908f5925
commit
e680546894
1 changed files with 1 additions and 1 deletions
|
|
@ -519,7 +519,7 @@ class Unpickler:
|
|||
dispatch[NONE] = load_none
|
||||
|
||||
def load_int(self):
|
||||
self.append(string.atoi(self.readline()[:-1], 0))
|
||||
self.append(string.atoi(self.readline()[:-1]))
|
||||
dispatch[INT] = load_int
|
||||
|
||||
def load_binint(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue