Skip to content

Commit a4c0767

Browse files
committed
deprecate asyncio.iscoroutinefunction in favour of inspect.iscoroutinefunction
1 parent aedef3f commit a4c0767

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/asyncio/coroutines.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import os
66
import sys
77
import types
8+
import warnings
89

910

1011
def _is_debug_mode():
@@ -15,6 +16,7 @@ def _is_debug_mode():
1516

1617
def iscoroutinefunction(func):
1718
"""Alias for inspect.iscoroutinefunction."""
19+
warnings._deprecated("asyncio.iscoroutinefunction", remove=(3, 14))
1820
return inspect.iscoroutinefunction(func)
1921

2022

0 commit comments

Comments
 (0)