[Python-checkins] cpython: Make comparison more consistent

raymond.hettinger python-checkins at python.org
Fri Oct 9 00:43:00 EDT 2015


https://hg.python.org/cpython/rev/7978f187b10a
changeset:   98613:7978f187b10a
user:        Raymond Hettinger <python at rcn.com>
date:        Fri Oct 09 00:42:47 2015 -0400
summary:
  Make comparison more consistent

files:
  Python/bltinmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -331,7 +331,7 @@
             Py_DECREF(it);
             return NULL;
         }
-        if (cmp == 1) {
+        if (cmp > 0) {
             Py_DECREF(it);
             Py_RETURN_TRUE;
         }

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list