mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
This commit is contained in:
parent
22a9a546ff
commit
dffe4c0709
23 changed files with 56 additions and 57 deletions
|
@ -527,7 +527,7 @@ teedataobject_traverse(teedataobject *tdo, visitproc visit, void * arg)
|
|||
static void
|
||||
teedataobject_safe_decref(PyObject *obj)
|
||||
{
|
||||
while (obj && Py_TYPE(obj) == &teedataobject_type &&
|
||||
while (obj && Py_IS_TYPE(obj, &teedataobject_type) &&
|
||||
Py_REFCNT(obj) == 1) {
|
||||
PyObject *nextlink = ((teedataobject *)obj)->nextlink;
|
||||
((teedataobject *)obj)->nextlink = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue