diff options
author | Andy Lester <andy@petdance.com> | 2020-03-04 13:15:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-04 13:15:20 (GMT) |
commit | dffe4c07095e0c693e094d3c140e85a68bd8128e (patch) | |
tree | 1f58f4c2f76d6f630c5279a7b72d31bb6b4d8873 /Objects/genobject.c | |
parent | 22a9a546ff3bf2a63d77ca1e5494e758bc59132f (diff) | |
download | cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.zip cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.gz cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.bz2 |
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r-- | Objects/genobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c index ef892bb..6bb08ae 100644 --- a/Objects/genobject.c +++ b/Objects/genobject.c @@ -1216,10 +1216,10 @@ static PyAsyncGenASend *ag_asend_freelist[_PyAsyncGen_MAXFREELIST]; static int ag_asend_freelist_free = 0; #define _PyAsyncGenWrappedValue_CheckExact(o) \ - (Py_TYPE(o) == &_PyAsyncGenWrappedValue_Type) + Py_IS_TYPE(o, &_PyAsyncGenWrappedValue_Type) #define PyAsyncGenASend_CheckExact(o) \ - (Py_TYPE(o) == &_PyAsyncGenASend_Type) + Py_IS_TYPE(o, &_PyAsyncGenASend_Type) static int @@ -1442,7 +1442,7 @@ PyAsyncGen_ClearFreeLists(void) while (ag_asend_freelist_free) { PyAsyncGenASend *o; o = ag_asend_freelist[--ag_asend_freelist_free]; - assert(Py_TYPE(o) == &_PyAsyncGenASend_Type); + assert(Py_IS_TYPE(o, &_PyAsyncGenASend_Type)); PyObject_GC_Del(o); } |