mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +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;
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue