1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-12-06 00:05:31 +00:00

[compat] Ensure submodules are correctly wrapped

This commit is contained in:
pukkandan
2022-04-24 21:58:18 +05:30
parent 9cd080508d
commit 9196cbfe8b
6 changed files with 73 additions and 22 deletions

View File

@@ -3,6 +3,10 @@
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

View File

@@ -2,6 +2,11 @@
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: