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

This commit is contained in:
Armin Rigo 2005-09-20 18:13:03 +00:00
parent a6eb56cf46
commit 71d7e704b8

View File

@ -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)