bpo-39873: Cleanup _PyObject_CheckConsistency() (GH-18807)
Remove redundant check on Py_TYPE() value: it's already checked inside _PyType_CheckConsistency().
This commit is contained in:
parent
57c9d17256
commit
9a73705a1d
|
@ -33,7 +33,6 @@ _PyObject_CheckConsistency(PyObject *op, int check_content)
|
|||
CHECK(!_PyObject_IsFreed(op));
|
||||
CHECK(Py_REFCNT(op) >= 1);
|
||||
|
||||
CHECK(Py_TYPE(op) != NULL);
|
||||
_PyType_CheckConsistency(Py_TYPE(op));
|
||||
|
||||
if (PyUnicode_Check(op)) {
|
||||
|
|
Loading…
Reference in New Issue