Commit b865f05a authored by Steven Bethard's avatar Steven Bethard

cell_compare needs to return -2 instead of NULL.

parent 5fe5cf6d
...@@ -57,7 +57,7 @@ cell_compare(PyCellObject *a, PyCellObject *b) ...@@ -57,7 +57,7 @@ cell_compare(PyCellObject *a, PyCellObject *b)
/* Py3K warning for comparisons */ /* Py3K warning for comparisons */
if (Py_Py3kWarningFlag && PyErr_Warn(PyExc_DeprecationWarning, if (Py_Py3kWarningFlag && PyErr_Warn(PyExc_DeprecationWarning,
"cell comparisons not supported in 3.x.") < 0) { "cell comparisons not supported in 3.x.") < 0) {
return NULL; return -2;
} }
if (a->ob_ref == NULL) { if (a->ob_ref == NULL) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment