diff options
author | 2018-05-28 17:54:02 -0400 | |
---|---|---|
committer | 2018-05-28 17:54:02 -0400 | |
commit | 416c1ebd9896b394790dcb4f9f035b1a44ebe9ff (patch) | |
tree | a5003eed8be41259a0e545fde1c2d22bf2ac23c7 /Lib/asyncio/__init__.py | |
parent | bpo-33469: RuntimeError after closing loop that used run_in_executor (GH-7171) (diff) | |
download | cpython-416c1ebd9896b394790dcb4f9f035b1a44ebe9ff.tar.gz cpython-416c1ebd9896b394790dcb4f9f035b1a44ebe9ff.tar.bz2 cpython-416c1ebd9896b394790dcb4f9f035b1a44ebe9ff.zip |
bpo-32610: Fix asyncio.all_tasks() to return only pending tasks. (GH-7174)
Diffstat (limited to 'Lib/asyncio/__init__.py')
-rw-r--r-- | Lib/asyncio/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/asyncio/__init__.py b/Lib/asyncio/__init__.py index 23ea055912e..26859024300 100644 --- a/Lib/asyncio/__init__.py +++ b/Lib/asyncio/__init__.py @@ -18,6 +18,10 @@ from .subprocess import * from .tasks import * from .transports import * +# Exposed for _asynciomodule.c to implement now deprecated +# Task.all_tasks() method. This function will be removed in 3.9. +from .tasks import _all_tasks_compat # NoQA + __all__ = (base_events.__all__ + coroutines.__all__ + events.__all__ + |