Commit e4bccb71 authored by Alexandre Vassalotti's avatar Alexandre Vassalotti

Factor common branch in load_long().

Suggested by Neal Norwitz.
parent 6fd47e2c
......@@ -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 {
/* XXX: Should the base argument explicitly set to 10? */
value = PyLong_FromString(s, NULL, 0);
}
if (value == NULL)
return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment