From: Benjamin Peterson Date: Thu, 12 Jan 2012 02:00:16 +0000 (-0500) Subject: fold into one if statement X-Git-Tag: v3.2.3rc1~194 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0010256de4cb40fe8597fd1395de1d9dee56ed55;p=python fold into one if statement --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 11b7624e41..e2ff0ba1c5 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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;