mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
fold into one if statement
This commit is contained in:
parent
ea868d32a1
commit
0010256de4
1 changed files with 1 additions and 3 deletions
|
@ -1502,10 +1502,8 @@ builtin_print(PyObject *self, PyObject *args, PyObject *kwds)
|
||||||
PyObject *sep = NULL, *end = NULL, *file = NULL;
|
PyObject *sep = NULL, *end = NULL, *file = NULL;
|
||||||
int i, err;
|
int i, err;
|
||||||
|
|
||||||
if (dummy_args == NULL) {
|
if (dummy_args == NULL && !(dummy_args = PyTuple_New(0)))
|
||||||
if (!(dummy_args = PyTuple_New(0)))
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
|
||||||
if (!PyArg_ParseTupleAndKeywords(dummy_args, kwds, "|OOO:print",
|
if (!PyArg_ParseTupleAndKeywords(dummy_args, kwds, "|OOO:print",
|
||||||
kwlist, &sep, &end, &file))
|
kwlist, &sep, &end, &file))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue