summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-01-24 01:47:57 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-01-24 01:47:57 (GMT)
commite4bccb714636edd50a788f0fbd1c37ae3cf6b3c1 (patch)
treebb7e5393a185a3cd0a885e383e13615c9ff2c586 /Modules
parent6fd47e2ce18fd71b2a69fee74fee61a6d103937d (diff)
downloadcpython-e4bccb714636edd50a788f0fbd1c37ae3cf6b3c1.zip
cpython-e4bccb714636edd50a788f0fbd1c37ae3cf6b3c1.tar.gz
cpython-e4bccb714636edd50a788f0fbd1c37ae3cf6b3c1.tar.bz2
Factor common branch in load_long().
Suggested by Neal Norwitz.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_pickle.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 435969d..6536e6f 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -2895,12 +2895,9 @@ load_long(UnpicklerObject *self)
the 'L' to be present. */
if (s[len-2] == 'L') {
s[len-2] = '\0';
- /* XXX: Should the base argument explicitly set to 10? */
- value = PyLong_FromString(s, NULL, 0);
- }
- else {
- value = PyLong_FromString(s, NULL, 0);
}
+ /* XXX: Should the base argument explicitly set to 10? */
+ value = PyLong_FromString(s, NULL, 0);
if (value == NULL)
return -1;