mirror of
https://github.com/python/cpython.git
synced 2024-11-29 04:44:13 +08:00
Removed a check "if (args != NULL)" which is always True and makes no sense.
This commit is contained in:
parent
a6eb56cf46
commit
71d7e704b8
@ -1908,11 +1908,9 @@ builtin_sorted(PyObject *self, PyObject *args, PyObject *kwds)
|
||||
static char *kwlist[] = {"iterable", "cmp", "key", "reverse", 0};
|
||||
long reverse;
|
||||
|
||||
if (args != NULL) {
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OOi:sorted",
|
||||
kwlist, &seq, &compare, &keyfunc, &reverse))
|
||||
return NULL;
|
||||
}
|
||||
if (!PyArg_ParseTupleAndKeywords(args, kwds, "O|OOi:sorted",
|
||||
kwlist, &seq, &compare, &keyfunc, &reverse))
|
||||
return NULL;
|
||||
|
||||
newlist = PySequence_List(seq);
|
||||
if (newlist == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user