diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2023-03-16 14:58:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 14:58:10 (GMT) |
commit | adaed17341e649fabb0f522e9b4f5962fcdf1d48 (patch) | |
tree | e272950f38c6ab240568898c91e61e7f9478a461 /Lib/asyncio | |
parent | fbe82fdd777cead5d6e08ac0d1da19738c19bd81 (diff) | |
download | cpython-adaed17341e649fabb0f522e9b4f5962fcdf1d48.zip cpython-adaed17341e649fabb0f522e9b4f5962fcdf1d48.tar.gz cpython-adaed17341e649fabb0f522e9b4f5962fcdf1d48.tar.bz2 |
GH-102748: remove legacy support for generator based coroutines from `asyncio.iscoroutine` (#102749)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/coroutines.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index 7fda0e4..ab4f30e 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -25,8 +25,7 @@ def iscoroutinefunction(func): # Prioritize native coroutine check to speed-up # asyncio.iscoroutine. -_COROUTINE_TYPES = (types.CoroutineType, types.GeneratorType, - collections.abc.Coroutine) +_COROUTINE_TYPES = (types.CoroutineType, collections.abc.Coroutine) _iscoroutine_typecache = set() |