Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 74340:068e5c4d4bae 3.2
fold into one if statement
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Wed, 11 Jan 2012 21:00:16 -0500 |
| parents | 7b01b88aae44 |
| children | ba01cf9a8578 9ccb498a3c16 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Wed Jan 11 14:54:34 2012 -0500 +++ b/Python/bltinmodule.c Wed Jan 11 21:00:16 2012 -0500 @@ -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;
