[Zodb-checkins] CVS: Zope/lib/python/persistent - cPersistence.c:1.79

Jeremy Hylton jeremy at zope.com
Tue Mar 2 15:22:17 EST 2004


Update of /cvs-repository/Zope/lib/python/persistent
In directory cvs.zope.org:/tmp/cvs-serv23668

Modified Files:
	cPersistence.c 
Log Message:
Make _p_changed return a bool instead of an int.

This shouldn't affect any user code, because False == 0 and True == 1.


=== Zope/lib/python/persistent/cPersistence.c 1.78 => 1.79 ===
--- Zope/lib/python/persistent/cPersistence.c:1.78	Fri Feb 20 12:20:16 2004
+++ Zope/lib/python/persistent/cPersistence.c	Tue Mar  2 15:22:16 2004
@@ -794,7 +794,7 @@
 	Py_INCREF(Py_None);
 	return Py_None;
     }
-    return PyInt_FromLong(self->state == cPersistent_CHANGED_STATE);
+    return PyBool_FromLong(self->state == cPersistent_CHANGED_STATE);
 }
 
 static int




More information about the Zodb-checkins mailing list