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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user