commit | ae4a299a0d457724cf1871dc8b30b6c01c58643c | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Oct 16 17:16:30 2003 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Oct 16 17:16:30 2003 +0000 |
tree | 2c21cce66caf80aa34b093306ec8c68e0b05e9d7 | |
parent | 6b59f5f3fd9bdf00875a7cead15f423fa1c2f910 [diff] |
Fix typo found by Neal Norwitz.
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 @@ 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;