From: Armin Rigo Date: Tue, 20 Sep 2005 18:13:03 +0000 (+0000) Subject: Removed a check "if (args != NULL)" which is always True and makes no sense. X-Git-Tag: v2.5a0~1354 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71d7e704b8982c586ffaf9d85399437f7a03d5e1;p=thirdparty%2FPython%2Fcpython.git Removed a check "if (args != NULL)" which is always True and makes no sense. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index d4e9a22e5f43..dca8555a2fb5 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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)