summaryrefslogtreecommitdiff
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2005-09-20 18:13:03 +0000
committerArmin Rigo <arigo@tunes.org>2005-09-20 18:13:03 +0000
commit38acf25966dfe550f21769d671392ce4fac81d6a (patch)
treea193d913dba63d9a6889e486c78082942cdcca3f /Python/bltinmodule.c
parent7b0c3bf62e193ab4427b70e7c71037cbad457f9d (diff)
downloadcpython-38acf25966dfe550f21769d671392ce4fac81d6a.tar.gz
Removed a check "if (args != NULL)" which is always True and makes no sense.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index d4e9a22e5f..dca8555a2f 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)