summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-10-09 04:42:47 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-10-09 04:42:47 (GMT)
commit5098b58381e572ccd55982004da903a59ffec95c (patch)
tree7686976e10c8430465e614dbc6b42db9132da0eb /Python/bltinmodule.c
parent7836a27ceba2395572f1b3b385c11e6a43910185 (diff)
downloadcpython-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.c2
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;
}