From 71d7e704b8982c586ffaf9d85399437f7a03d5e1 Mon Sep 17 00:00:00 2001 From: Armin Rigo Date: Tue, 20 Sep 2005 18:13:03 +0000 Subject: [PATCH] Removed a check "if (args != NULL)" which is always True and makes no sense. --- Python/bltinmodule.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index d4e9a22e5f4..dca8555a2fb 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)