diff Objects/listobject.c @ 30699:efed489df545 legacy-trunk

Fix typo found by Neal Norwitz.
author Raymond Hettinger <python@rcn.com>
date Thu, 16 Oct 2003 17:16:30 +0000
parents 1345c23a0591
children 2cba0de70df6
line wrap: on
line diff
--- a/Objects/listobject.c	Thu Oct 16 05:53:16 2003 +0000
+++ b/Objects/listobject.c	Thu Oct 16 17:16:30 2003 +0000
@@ -1778,7 +1778,7 @@
 	if (!PyArg_UnpackTuple(args, "", 2, 2, &x, &y))
 		return NULL;
 	if (!PyObject_TypeCheck(x, &sortwrapper_type) ||
-	    !PyObject_TypeCheck(x, &sortwrapper_type)) {
+	    !PyObject_TypeCheck(y, &sortwrapper_type)) {
 		PyErr_SetString(PyExc_TypeError, 
 			"expected a sortwrapperobject");
 		return NULL;