diff options
author | Raymond Hettinger <python@rcn.com> | 2015-10-09 04:42:47 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-10-09 04:42:47 (GMT) |
commit | 5098b58381e572ccd55982004da903a59ffec95c (patch) | |
tree | 7686976e10c8430465e614dbc6b42db9132da0eb /Python/bltinmodule.c | |
parent | 7836a27ceba2395572f1b3b385c11e6a43910185 (diff) | |
download | cpython-5098b58381e572ccd55982004da903a59ffec95c.zip cpython-5098b58381e572ccd55982004da903a59ffec95c.tar.gz cpython-5098b58381e572ccd55982004da903a59ffec95c.tar.bz2 |
Make comparison more consistent
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 2038d2b..3f2e2c0 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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; } |