summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
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 d4e9a22..dca8555 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)