Commit 0f47fa2c authored by Andrew Svetlov's avatar Andrew Svetlov Committed by Yury Selivanov

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

parent ca9b36cd
......@@ -138,7 +138,7 @@ _is_coroutine(PyObject *coro)
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
positive types. That shouldn't ever happen, unless
someone stressing the system on purpose.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment