mirror of
https://github.com/python/cpython.git
synced 2025-07-13 14:25:18 +00:00
Make comparison more consistent
This commit is contained in:
parent
7836a27ceb
commit
5098b58381
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue