[Python-checkins] r61538 - python/trunk/Objects/cellobject.c
steven.bethard
python-checkins at python.org
Tue Mar 18 20:03:50 CET 2008
Author: steven.bethard
Date: Tue Mar 18 20:03:50 2008
New Revision: 61538
Modified:
python/trunk/Objects/cellobject.c
Log:
cell_compare needs to return -2 instead of NULL.
Modified: python/trunk/Objects/cellobject.c
==============================================================================
--- python/trunk/Objects/cellobject.c (original)
+++ python/trunk/Objects/cellobject.c Tue Mar 18 20:03:50 2008
@@ -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) {
More information about the Python-checkins
mailing list