[Zodb-checkins] CVS: Zope/lib/python/ZODB - TimeStamp.c:1.7.36.1

Andreas Jung andreas@zope.com
Tue, 27 Nov 2001 08:22:22 -0500


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

Modified Files:
      Tag: Zope-2_4-branch
	TimeStamp.c 
Log Message:
Replaced usage of uninitialized ErrorObject by PyExc_ValueError


=== Zope/lib/python/ZODB/TimeStamp.c 1.7 => 1.7.36.1 ===
 #endif
 
-static PyObject *ErrorObject;
-
 /* ----------------------------------------------------- */
 
 #define UNLESS(E) if(!(E))
@@ -184,7 +182,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);