1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 14:45:14 +00:00

[compat] Ensure submodules are imported correctly

Closes #7663
This commit is contained in:
pukkandan
2023-07-22 17:56:53 +05:30
parent 25b6e8f946
commit a250b24733
5 changed files with 18 additions and 12 deletions

View File

@@ -1,4 +1,12 @@
"""Deprecated - New code should avoid these"""
import warnings
from .compat_utils import passthrough_module
# XXX: Implement this the same way as other DeprecationWarnings without circular import
passthrough_module(__name__, '.._legacy', callback=lambda attr: warnings.warn(
DeprecationWarning(f'{__name__}.{attr} is deprecated'), stacklevel=6))
del passthrough_module
import base64
import urllib.error