summaryrefslogtreecommitdiffstats
path: root/Lib/pickle.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-10 19:36:41 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-10 19:36:41 (GMT)
commite680546894ae6e5dffe8b6f6a6a17a56301033ae (patch)
tree41d1d040a179fe9dcfdb1eb84576f5652df6e7d1 /Lib/pickle.py
parent87908f5925a4a888a8ae52e507d079da7232e8d8 (diff)
downloadcpython-e680546894ae6e5dffe8b6f6a6a17a56301033ae.zip
cpython-e680546894ae6e5dffe8b6f6a6a17a56301033ae.tar.gz
cpython-e680546894ae6e5dffe8b6f6a6a17a56301033ae.tar.bz2
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.)
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r--Lib/pickle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py
index 3068b41..2ec9a43 100644
--- a/Lib/pickle.py
+++ b/Lib/pickle.py
@@ -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):