From e4bccb714636edd50a788f0fbd1c37ae3cf6b3c1 Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Sat, 24 Jan 2009 01:47:57 +0000 Subject: Factor common branch in load_long(). Suggested by Neal Norwitz. --- Modules/_pickle.c | 7 ++----- 1 file 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; -- cgit v0.12