commit | b865f05a0f3eed342c54c4cf55c1281124f15484 | [log] [tgz] |
---|---|---|
author | Steven Bethard <steven.bethard@gmail.com> | Tue Mar 18 19:03:50 2008 +0000 |
committer | Steven Bethard <steven.bethard@gmail.com> | Tue Mar 18 19:03:50 2008 +0000 |
tree | 4a3aaf42f8eca19c03773599649480e9a859dc89 | |
parent | 5fe5cf6df20607033096c05d68cef7222a35697c [diff] |
cell_compare needs to return -2 instead of NULL.
diff --git a/Objects/cellobject.c b/Objects/cellobject.c index 37cde41..2286aaf 100644 --- a/Objects/cellobject.c +++ b/Objects/cellobject.c
@@ -57,7 +57,7 @@ /* Py3K warning for comparisons */ if (Py_Py3kWarningFlag && PyErr_Warn(PyExc_DeprecationWarning, "cell comparisons not supported in 3.x.") < 0) { - return NULL; + return -2; } if (a->ob_ref == NULL) {