diff options
author | Victor Stinner <vstinner@python.org> | 2020-03-06 17:57:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 17:57:48 (GMT) |
commit | 9a73705a1d0cb8b89d0a20add2ffa2c4d32950ed (patch) | |
tree | c298da2151e217d2048ce52f140340a68a8e4848 /Objects/object.c | |
parent | 57c9d1725689dde068a7fccaa7500772ecd16d2e (diff) | |
download | cpython-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.c | 1 |
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)) { |