[Python-checkins] python/dist/src/Python bltinmodule.c, 2.325, 2.326

arigo@users.sourceforge.net arigo at users.sourceforge.net
Tue Sep 20 20:13:07 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18581

Modified Files:
	bltinmodule.c 
Log Message:
Removed a check "if (args != NULL)" which is always True and makes no sense.


Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.325
retrieving revision 2.326
diff -u -d -r2.325 -r2.326
--- bltinmodule.c	15 Sep 2005 10:46:13 -0000	2.325
+++ bltinmodule.c	20 Sep 2005 18:13:03 -0000	2.326
@@ -1908,11 +1908,9 @@
 	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)



More information about the Python-checkins mailing list