Skip to content

Commit 0f47fa2

Browse files
asvetlovYury Selivanov
authored andcommitted
bpo-32357: Use PySet_GET_SIZE macro in _is_coroutine() from _asynciomodule.c (#4990)
1 parent ca9b36c commit 0f47fa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_asynciomodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ _is_coroutine(PyObject *coro)
138138
return is_res_true;
139139
}
140140

141-
if (PySet_Size(iscoroutine_typecache) < 100) {
141+
if (PySet_GET_SIZE(iscoroutine_typecache) < 100) {
142142
/* Just in case we don't want to cache more than 100
143143
positive types. That shouldn't ever happen, unless
144144
someone stressing the system on purpose.

0 commit comments

Comments
 (0)