Skip to content

Commit

Permalink
bpo-39873: Cleanup _PyObject_CheckConsistency() (GH-18807)
Browse files Browse the repository at this point in the history
Remove redundant check on Py_TYPE() value: it's already checked
inside _PyType_CheckConsistency().
  • Loading branch information
vstinner committed Mar 6, 2020
1 parent 57c9d17 commit 9a73705
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Objects/object.c
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9a73705

Please sign in to comment.