summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2005-09-20 18:13:03 (GMT)
committerArmin Rigo <arigo@tunes.org>2005-09-20 18:13:03 (GMT)
commit71d7e704b8982c586ffaf9d85399437f7a03d5e1 (patch)
tree42920afc6c448e0bb050ae6f5e7604a63f631831 /Python
parenta6eb56cf4672cedb813af1c228df14d1d2208c7a (diff)
downloadcpython-71d7e704b8982c586ffaf9d85399437f7a03d5e1.zip
cpython-71d7e704b8982c586ffaf9d85399437f7a03d5e1.tar.gz
cpython-71d7e704b8982c586ffaf9d85399437f7a03d5e1.tar.bz2
Removed a check "if (args != NULL)" which is always True and makes no sense.
Diffstat (limited to 'Python')
-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)