Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5098b58

Browse files
committed
Make comparison more consistent
1 parent 7836a27 commit 5098b58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ builtin_any(PyModuleDef *module, PyObject *iterable)
331331
Py_DECREF(it);
332332
return NULL;
333333
}
334-
if (cmp == 1) {
334+
if (cmp > 0) {
335335
Py_DECREF(it);
336336
Py_RETURN_TRUE;
337337
}

0 commit comments

Comments
 (0)