From: Alexandre Vassalotti Date: Sat, 24 Jan 2009 01:47:57 +0000 (+0000) Subject: Factor common branch in load_long(). X-Git-Tag: v3.1a1~418 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e4bccb714636edd50a788f0fbd1c37ae3cf6b3c1;p=python Factor common branch in load_long(). Suggested by Neal Norwitz. --- diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 435969d676..6536e6f160 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;