]> granicus.if.org Git - python/commitdiff
remove unneeded assertion
authorBenjamin Peterson <benjamin@python.org>
Mon, 17 Jan 2011 19:54:55 +0000 (19:54 +0000)
committerBenjamin Peterson <benjamin@python.org>
Mon, 17 Jan 2011 19:54:55 +0000 (19:54 +0000)
Objects/typeobject.c

index 03d9134d69c9c066b9e52f8aac598861d3a5b3f5..db7828a2fc5022b4afc88367aa1d5043e7cbb307 100644 (file)
@@ -2946,7 +2946,6 @@ same_slots_added(PyTypeObject *a, PyTypeObject *b)
     PyObject *slots_a, *slots_b;
 
     assert(base == b->tp_base);
-    assert(!equiv_structs(a, base) && !equiv_structs(b, base));
     size = base->tp_basicsize;
     if (a->tp_dictoffset == size && b->tp_dictoffset == size)
         size += sizeof(PyObject *);