Remove the typeid stuff from tp_traverse; it does not seem to be needed anymore (don't remember why I added it in the first place...).

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-04-28 15:55:16 +01:00
1 parent 82b64a2543
commit 5af610271e
1 file changed
+2 -2
+2 -2
View File
@@ -1300,9 +1300,9 @@ static void
else:
peekref_code = " && self->obj->%s() == 1" % self.peekref_method
visit_self = '''
if (self->obj && typeid(*self->obj) == typeid(%s)%s)
if (self->obj %s)
Py_VISIT((PyObject *) self);
''' % (self.helper_class.name, peekref_code)
''' % (peekref_code)
code_sink.writeln(r'''
static int