aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat/asyncio/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/compat/asyncio/tasks.py')
-rw-r--r--yt_dlp/compat/asyncio/tasks.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/compat/asyncio/tasks.py b/yt_dlp/compat/asyncio/tasks.py
new file mode 100644
index 000000000..cb31e52fa
--- /dev/null
+++ b/yt_dlp/compat/asyncio/tasks.py
@@ -0,0 +1,8 @@
+# flake8: noqa: F405
+
+from asyncio.tasks import * # noqa: F403
+
+try: # >= 3.7
+ all_tasks
+except NameError:
+ all_tasks = Task.all_tasks