From b865f05a0f3eed342c54c4cf55c1281124f15484 Mon Sep 17 00:00:00 2001 From: Steven Bethard Date: Tue, 18 Mar 2008 19:03:50 +0000 Subject: cell_compare needs to return -2 instead of NULL. --- Objects/cellobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12