diff options
| author | Benjamin Peterson <benjamin@python.org> | 2012-01-11 21:00:16 -0500 |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2012-01-11 21:00:16 -0500 |
| commit | cc1c307aab7a507e0ecdb85e5bb19ecf9c6b4926 (patch) | |
| tree | ef0a6965da3df2f4ab1417f8c4766b7f37698f74 /Python/bltinmodule.c | |
| parent | ea0f797192be52d514f5f3ce6b471823d53194f9 (diff) | |
| download | cpython-cc1c307aab7a507e0ecdb85e5bb19ecf9c6b4926.tar.gz | |
fold into one if statement
Diffstat (limited to 'Python/bltinmodule.c')
| -rw-r--r-- | Python/bltinmodule.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |
