summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-03-06 17:57:48 (GMT)
committerGitHub <noreply@github.com>2020-03-06 17:57:48 (GMT)
commit9a73705a1d0cb8b89d0a20add2ffa2c4d32950ed (patch)
treec298da2151e217d2048ce52f140340a68a8e4848 /Objects/object.c
parent57c9d1725689dde068a7fccaa7500772ecd16d2e (diff)
downloadcpython-9a73705a1d0cb8b89d0a20add2ffa2c4d32950ed.zip
cpython-9a73705a1d0cb8b89d0a20add2ffa2c4d32950ed.tar.gz
cpython-9a73705a1d0cb8b89d0a20add2ffa2c4d32950ed.tar.bz2
bpo-39873: Cleanup _PyObject_CheckConsistency() (GH-18807)
Remove redundant check on Py_TYPE() value: it's already checked inside _PyType_CheckConsistency().
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 707424c..8314a08 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -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)) {