]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Removed a check "if (args != NULL)" which is always True and makes no sense.
authorArmin Rigo <arigo@tunes.org>
Tue, 20 Sep 2005 18:13:03 +0000 (18:13 +0000)
committerArmin Rigo <arigo@tunes.org>
Tue, 20 Sep 2005 18:13:03 +0000 (18:13 +0000)
Python/bltinmodule.c

index d4e9a22e5f4391cd4d4bb59722ffde88405159c3..dca8555a2fb56b8d11b7ae069207fee6f8095146 100644 (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)