[Python-checkins] r68878 - python/branches/py3k/Modules/_pickle.c

alexandre.vassalotti python-checkins at python.org
Sat Jan 24 02:47:57 CET 2009


Author: alexandre.vassalotti
Date: Sat Jan 24 02:47:57 2009
New Revision: 68878

Log:
Factor common branch in load_long().

Suggested by Neal Norwitz.


Modified:
   python/branches/py3k/Modules/_pickle.c

Modified: python/branches/py3k/Modules/_pickle.c
==============================================================================
--- python/branches/py3k/Modules/_pickle.c	(original)
+++ python/branches/py3k/Modules/_pickle.c	Sat Jan 24 02:47:57 2009
@@ -2895,12 +2895,9 @@
        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;
 


More information about the Python-checkins mailing list