Kaydet (Commit) 5098b583 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Make comparison more consistent

üst 7836a27c
......@@ -331,7 +331,7 @@ builtin_any(PyModuleDef *module, PyObject *iterable)
Py_DECREF(it);
return NULL;
}
if (cmp == 1) {
if (cmp > 0) {
Py_DECREF(it);
Py_RETURN_TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment