Fix typo found by Neal Norwitz.

This commit is contained in:
Raymond Hettinger 2003-10-16 17:16:30 +00:00
parent 6b59f5f3fd
commit ae4a299a0d

View File

@ -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;