[Python-checkins] cpython (3.2): fold into one if statement

benjamin.peterson python-checkins at python.org
Thu Jan 12 03:00:54 CET 2012


http://hg.python.org/cpython/rev/068e5c4d4bae
changeset:   74340:068e5c4d4bae
branch:      3.2
parent:      74336:32ea3675fba2
user:        Benjamin Peterson <benjamin at python.org>
date:        Wed Jan 11 21:00:16 2012 -0500
summary:
  fold into one if statement

files:
  Python/bltinmodule.c |  4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)


diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1502,10 +1502,8 @@
     PyObject *sep = NULL, *end = NULL, *file = NULL;
     int i, err;
 
-    if (dummy_args == NULL) {
-        if (!(dummy_args = PyTuple_New(0)))
+    if (dummy_args == NULL && !(dummy_args = PyTuple_New(0)))
             return NULL;
-    }
     if (!PyArg_ParseTupleAndKeywords(dummy_args, kwds, "|OOO:print",
                                      kwlist, &sep, &end, &file))
         return NULL;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list