diff options
author | Steven Bethard <steven.bethard@gmail.com> | 2008-03-18 19:03:50 (GMT) |
---|---|---|
committer | Steven Bethard <steven.bethard@gmail.com> | 2008-03-18 19:03:50 (GMT) |
commit | b865f05a0f3eed342c54c4cf55c1281124f15484 (patch) | |
tree | 4a3aaf42f8eca19c03773599649480e9a859dc89 /Objects | |
parent | 5fe5cf6df20607033096c05d68cef7222a35697c (diff) | |
download | cpython-b865f05a0f3eed342c54c4cf55c1281124f15484.zip cpython-b865f05a0f3eed342c54c4cf55c1281124f15484.tar.gz cpython-b865f05a0f3eed342c54c4cf55c1281124f15484.tar.bz2 |
cell_compare needs to return -2 instead of NULL.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/cellobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ cell_compare(PyCellObject *a, PyCellObject *b) /* 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) { |