From ae4a299a0d457724cf1871dc8b30b6c01c58643c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 16 Oct 2003 17:16:30 +0000 Subject: Fix typo found by Neal Norwitz. --- Objects/listobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/listobject.c b/Objects/listobject.c index 2edbedf..b53b948 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -1778,7 +1778,7 @@ cmpwrapper_call(cmpwrapperobject *co, PyObject *args, PyObject *kwds) 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; -- cgit v0.12