[Zodb-checkins] CVS: Zope/lib/python/ZODB - TimeStamp.c:1.9
Andreas Jung
andreas@zope.com
Mon, 26 Nov 2001 15:33:24 -0500
Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv14092
Modified Files:
TimeStamp.c
Log Message:
uninitialized error object got passed to PyErr_SetString.
Replaced it with a standard ValueError exception
=== Zope/lib/python/ZODB/TimeStamp.c 1.8 => 1.9 ===
#endif
-static PyObject *ErrorObject;
/* ----------------------------------------------------- */
@@ -184,7 +183,7 @@
{
if (m != 8)
{
- PyErr_SetString(ErrorObject, "8-character string expected");
+ PyErr_SetString(PyExc_ValueError, "8-character string expected");
return NULL;
}
memcpy(self->data, s, 8);