[Zodb-checkins] CVS: ZODB3/ZODB - cPersistence.c:1.64

Jeremy Hylton jeremy@zope.com
Tue, 1 Oct 2002 11:06:17 -0400


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv1312

Modified Files:
	cPersistence.c 
Log Message:
Change getattr() of TimeStamp to use PyObject_GetAttrString().

When the import changed to be absolute rather than relative, the trick
of using the same Python string for the import and the getattr failed.

Add an assert() that TimeStamp is not NULL.


=== ZODB3/ZODB/cPersistence.c 1.63 => 1.64 ===
--- ZODB3/ZODB/cPersistence.c:1.63	Mon Sep 30 12:02:32 2002
+++ ZODB3/ZODB/cPersistence.c	Tue Oct  1 11:06:17 2002
@@ -853,7 +853,8 @@
       Py_DECREF(s);
       return;
   }
-  TimeStamp = PyObject_GetAttr(m, s);
+  TimeStamp = PyObject_GetAttrString(m, "TimeStamp");
+  assert(TimeStamp);
   Py_DECREF(m);
   Py_DECREF(s);