mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Removed a check "if (args != NULL)" which is always True and makes no sense.
This commit is contained in:
parent
a6eb56cf46
commit
71d7e704b8
1 changed files with 3 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue