Kaydet (Commit) 71d7e704 authored tarafından Armin Rigo's avatar Armin Rigo

Removed a check "if (args != NULL)" which is always True and makes no sense.

üst a6eb56cf
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment