]> granicus.if.org Git - python/commitdiff
Remove exception for non-NULL tp_compare that was introduced in r69188.
authorMark Dickinson <dickinsm@gmail.com>
Sun, 1 Feb 2009 20:36:08 +0000 (20:36 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 1 Feb 2009 20:36:08 +0000 (20:36 +0000)
Objects/typeobject.c

index c6d6fc8ec3d8741243a6f1b692a7f53586c7806d..59890d26987a8b814390d8706fa9d02a2c5726af 100644 (file)
@@ -3886,13 +3886,6 @@ PyType_Ready(PyTypeObject *type)
                        goto error;
        }
 
-       /* Check reserved slots */
-       if (type->tp_compare) {
-               PyErr_Format(PyExc_TypeError,
-                            "type %s has tp_compare",
-                            type->tp_name);
-       }
-
        /* All done -- set the ready flag */
        assert(type->tp_dict != NULL);
        type->tp_flags =