Make comparison more consistent
This commit is contained in:
parent
7836a27ceb
commit
5098b58381
|
@ -331,7 +331,7 @@ builtin_any(PyModuleDef *module, PyObject *iterable)
|
||||||
Py_DECREF(it);
|
Py_DECREF(it);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (cmp == 1) {
|
if (cmp > 0) {
|
||||||
Py_DECREF(it);
|
Py_DECREF(it);
|
||||||
Py_RETURN_TRUE;
|
Py_RETURN_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue