Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0010256

Browse files
committed
fold into one if statement
1 parent ea868d3 commit 0010256

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,10 +1502,8 @@ builtin_print(PyObject *self, PyObject *args, PyObject *kwds)
15021502
PyObject *sep = NULL, *end = NULL, *file = NULL;
15031503
int i, err;
15041504

1505-
if (dummy_args == NULL) {
1506-
if (!(dummy_args = PyTuple_New(0)))
1505+
if (dummy_args == NULL && !(dummy_args = PyTuple_New(0)))
15071506
return NULL;
1508-
}
15091507
if (!PyArg_ParseTupleAndKeywords(dummy_args, kwds, "|OOO:print",
15101508
kwlist, &sep, &end, &file))
15111509
return NULL;

0 commit comments

Comments
 (0)