summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-12 02:00:16 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-01-12 02:00:16 (GMT)
commit0010256de4cb40fe8597fd1395de1d9dee56ed55 (patch)
treeb2a96654afb18e5b09d94f487c4af62be5535fe4 /Python
parentea868d32a1ca25a96a1dc17ca1c11db0bf37e413 (diff)
downloadcpython-0010256de4cb40fe8597fd1395de1d9dee56ed55.zip
cpython-0010256de4cb40fe8597fd1395de1d9dee56ed55.tar.gz
cpython-0010256de4cb40fe8597fd1395de1d9dee56ed55.tar.bz2
fold into one if statement
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 11b7624..e2ff0ba 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;