[Zodb-checkins] CVS: Zope/lib/python/ZODB - cPickleCache.c:1.47

Guido van Rossum guido@python.org
Tue, 2 Apr 2002 09:35:38 -0500


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

Modified Files:
	cPickleCache.c 
Log Message:
Jeremy, did you actually try to compile this?  If so, what compiler
did you use?


=== Zope/lib/python/ZODB/cPickleCache.c 1.46 => 1.47 ===
     int result;
     PyExtensionClass *class;
+    PyObject *oid, *object_again;
+    cPersistentObject *p;
 
     if (!PyExtensionInstance_Check(v)) {
 	PyErr_SetString(PyExc_ValueError, 
@@ -673,9 +675,7 @@
     }
 
     /* XXX Why not self->oid? */
-    PyObject *oid = PyObject_GetAttr(v, py__p_oid);
-    PyObject *object_again;
-    cPersistentObject *p;
+    oid = PyObject_GetAttr(v, py__p_oid);
 
     if (oid == NULL)
 	return -1;