[Zodb-checkins] CVS: Zope3/lib/python/Persistence/BTrees - BTreeModuleTemplate.c:1.1.2.14

Jeremy Hylton jeremy@zope.com
Wed, 5 Jun 2002 18:01:11 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence/BTrees
In directory cvs.zope.org:/tmp/cvs-serv15833

Modified Files:
      Tag: Zope-3x-branch
	BTreeModuleTemplate.c 
Log Message:
Don't override the BTrees objects tp_traverse and tp_clear slots!

This code was leftover from when BTrees objects didn't implement these
slots.


=== Zope3/lib/python/Persistence/BTrees/BTreeModuleTemplate.c 1.1.2.13 => 1.1.2.14 ===
     type->tp_base = PyPersist_BASE_TYPE;
 
-    /* XXX for now */
-    type->tp_traverse = PyPersist_BASE_TYPE->tp_traverse;
-    type->tp_clear = PyPersist_BASE_TYPE->tp_clear;
-
     if (PyType_Ready(type) < 0)
 	return -1;