Mercurial > cpython-lru_cache-weakref
diff Python/bltinmodule.c @ 35608:a670a5dd1fc6 legacy-trunk
Removed a check "if (args != NULL)" which is always True and makes no sense.
| author | Armin Rigo <arigo@tunes.org> |
|---|---|
| date | Tue, 20 Sep 2005 18:13:03 +0000 |
| parents | fa0881fd49b7 |
| children | e22334b1da67 |
line wrap: on
line diff
--- a/Python/bltinmodule.c Tue Sep 20 18:07:47 2005 +0000 +++ b/Python/bltinmodule.c Tue Sep 20 18:13:03 2005 +0000 @@ -1908,11 +1908,9 @@ 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)
