]> granicus.if.org Git - python/commitdiff
fold into one if statement
authorBenjamin Peterson <benjamin@python.org>
Thu, 12 Jan 2012 02:00:16 +0000 (21:00 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 12 Jan 2012 02:00:16 +0000 (21:00 -0500)
Python/bltinmodule.c

index 11b7624e417362fb47076b3109626323bd6d41ca..e2ff0ba1c5304df64c805eb135219b8a3cec1af0 100644 (file)
@@ -1502,10 +1502,8 @@ builtin_print(PyObject *self, PyObject *args, PyObject *kwds)
     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;