diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-26 05:45:18 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-04-26 05:45:18 +0530 |
commit | 059bc4db1975698dca53278a0fcc23d428b7658a (patch) | |
tree | a0489cad76d8a401647263f2c000b16fe48777e1 /yt_dlp/compat/asyncio | |
parent | 9196cbfe8bb7a6eb46037735b76f21963dfdc61a (diff) | |
download | hypervideo-pre-059bc4db1975698dca53278a0fcc23d428b7658a.tar.lz hypervideo-pre-059bc4db1975698dca53278a0fcc23d428b7658a.tar.xz hypervideo-pre-059bc4db1975698dca53278a0fcc23d428b7658a.zip |
[compat/asyncio] Use `asyncio.all_tasks`
Diffstat (limited to 'yt_dlp/compat/asyncio')
-rw-r--r-- | yt_dlp/compat/asyncio/__init__.py | 20 | ||||
-rw-r--r-- | yt_dlp/compat/asyncio/tasks.py | 13 |
2 files changed, 0 insertions, 33 deletions
diff --git a/yt_dlp/compat/asyncio/__init__.py b/yt_dlp/compat/asyncio/__init__.py deleted file mode 100644 index 21b494499..000000000 --- a/yt_dlp/compat/asyncio/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -# flake8: noqa: F405 - -from asyncio import * # noqa: F403 - -from . import tasks # noqa: F401 -from ..compat_utils import passthrough_module - -passthrough_module(__name__, 'asyncio') -del passthrough_module - -try: - run # >= 3.7 -except NameError: - def run(coro): - try: - loop = get_event_loop() - except RuntimeError: - loop = new_event_loop() - set_event_loop(loop) - loop.run_until_complete(coro) diff --git a/yt_dlp/compat/asyncio/tasks.py b/yt_dlp/compat/asyncio/tasks.py deleted file mode 100644 index 9d98fdfeb..000000000 --- a/yt_dlp/compat/asyncio/tasks.py +++ /dev/null @@ -1,13 +0,0 @@ -# flake8: noqa: F405 - -from asyncio.tasks import * # noqa: F403 - -from ..compat_utils import passthrough_module - -passthrough_module(__name__, 'asyncio.tasks') -del passthrough_module - -try: # >= 3.7 - all_tasks -except NameError: - all_tasks = Task.all_tasks |