mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
cell_compare needs to return -2 instead of NULL.
This commit is contained in:
parent
5fe5cf6df2
commit
b865f05a0f
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue