mirror of
https://github.com/python/cpython.git
synced 2025-10-22 14:42:22 +00:00
Remove exception for non-NULL tp_compare that was introduced in r69188.
This commit is contained in:
parent
c48d834026
commit
995d4cdd62
1 changed files with 0 additions and 7 deletions
|
@ -3886,13 +3886,6 @@ PyType_Ready(PyTypeObject *type)
|
||||||
goto error;
|
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 */
|
/* All done -- set the ready flag */
|
||||||
assert(type->tp_dict != NULL);
|
assert(type->tp_dict != NULL);
|
||||||
type->tp_flags =
|
type->tp_flags =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue