mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-27 14:17:01 +00:00
21 lines
449 B
Python
21 lines
449 B
Python
# 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)
|