aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat/asyncio.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-07-18 05:50:54 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-07-18 06:31:14 +0530
commit6929b41a216e20f0498cbd99880b17eab16777c9 (patch)
treeacbf7d1155c39cdd4ae1e3567b994ea8c69958cd /yt_dlp/compat/asyncio.py
parent0b5583b112d418ba4d4eefcde1cd4d54ab95458a (diff)
downloadhypervideo-pre-6929b41a216e20f0498cbd99880b17eab16777c9.tar.lz
hypervideo-pre-6929b41a216e20f0498cbd99880b17eab16777c9.tar.xz
hypervideo-pre-6929b41a216e20f0498cbd99880b17eab16777c9.zip
Remove Python 3.6 support
Closes #3764
Diffstat (limited to 'yt_dlp/compat/asyncio.py')
-rw-r--r--yt_dlp/compat/asyncio.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/yt_dlp/compat/asyncio.py b/yt_dlp/compat/asyncio.py
deleted file mode 100644
index c61e5c8fd..000000000
--- a/yt_dlp/compat/asyncio.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# flake8: noqa: F405
-from asyncio import * # noqa: F403
-
-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)
-
-try:
- all_tasks # >= 3.7
-except NameError:
- all_tasks = Task.all_tasks