diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-30 22:19:01 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-06-30 22:19:01 (GMT) |
commit | a74b5e59af6b4271eac7953771e7d3346e76b058 (patch) | |
tree | b677c97fc2bda02f303c62c4c8545948b2fc00e6 /Lib/inspect.py | |
parent | 86cd7d6b756bb0f99b7854c75dfcd24e1ec3bdbc (diff) | |
download | cpython-a74b5e59af6b4271eac7953771e7d3346e76b058.zip cpython-a74b5e59af6b4271eac7953771e7d3346e76b058.tar.gz cpython-a74b5e59af6b4271eac7953771e7d3346e76b058.tar.bz2 |
Issue #24400: Remove inspect.isawaitable().
isawaitable() was added before collections.abc.Awaitable; now,
with Awaitable, it is no longer needed (we don't have ishashable()
or isiterable() methods in the inspect module either).
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 6285a6c..f48769e 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -186,10 +186,6 @@ def iscoroutinefunction(object): return bool((isfunction(object) or ismethod(object)) and object.__code__.co_flags & CO_COROUTINE) -def isawaitable(object): - """Return true if the object can be used in "await" expression.""" - return isinstance(object, collections.abc.Awaitable) - def isgenerator(object): """Return true if the object is a generator. |