bpo-32357: Use PySet_GET_SIZE macro in _is_coroutine() from _asynciomodule.c (#4990)

This commit is contained in:
Andrew Svetlov 2017-12-23 22:06:46 +02:00 committed by Yury Selivanov
parent ca9b36cd1a
commit 0f47fa2c89
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ _is_coroutine(PyObject *coro)
return is_res_true; return is_res_true;
} }
if (PySet_Size(iscoroutine_typecache) < 100) { if (PySet_GET_SIZE(iscoroutine_typecache) < 100) {
/* Just in case we don't want to cache more than 100 /* Just in case we don't want to cache more than 100
positive types. That shouldn't ever happen, unless positive types. That shouldn't ever happen, unless
someone stressing the system on purpose. someone stressing the system on purpose.