summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-10-16 17:16:30 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-10-16 17:16:30 (GMT)
commitae4a299a0d457724cf1871dc8b30b6c01c58643c (patch)
tree2c21cce66caf80aa34b093306ec8c68e0b05e9d7 /Objects/listobject.c
parent6b59f5f3fd9bdf00875a7cead15f423fa1c2f910 (diff)
downloadcpython-ae4a299a0d457724cf1871dc8b30b6c01c58643c.zip
cpython-ae4a299a0d457724cf1871dc8b30b6c01c58643c.tar.gz
cpython-ae4a299a0d457724cf1871dc8b30b6c01c58643c.tar.bz2
Fix typo found by Neal Norwitz.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
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;