summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2017-12-23 20:06:46 (GMT)
committerYury Selivanov <yury@magic.io>2017-12-23 20:06:46 (GMT)
commit0f47fa2c89a6b9a04969219dfb0c3801c611e3ca (patch)
treea48ff961565eb36c0a26b2abeaa177b4ed9f688c /Modules
parentca9b36cd1a384e5ecb56d9df9a59144240353ef0 (diff)
downloadcpython-0f47fa2c89a6b9a04969219dfb0c3801c611e3ca.zip
cpython-0f47fa2c89a6b9a04969219dfb0c3801c611e3ca.tar.gz
cpython-0f47fa2c89a6b9a04969219dfb0c3801c611e3ca.tar.bz2
bpo-32357: Use PySet_GET_SIZE macro in _is_coroutine() from _asynciomodule.c (#4990)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_asynciomodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c
index 25acd55..d626127 100644
--- a/Modules/_asynciomodule.c
+++ b/Modules/_asynciomodule.c
@@ -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.