1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2026-01-21 22:31:16 +00:00

[cleanup, utils] Split into submodules (#7090)

Closes https://github.com/yt-dlp/yt-dlp/pull/2173

Authored by: pukkandan, coletdjnz
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
coletdjnz
2023-05-21 09:56:23 +12:00
committed by GitHub
parent 23c39a4bea
commit 69bec6730e
8 changed files with 480 additions and 444 deletions

14
yt_dlp/utils/__init__.py Normal file
View File

@@ -0,0 +1,14 @@
import warnings
from ..compat.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=5))
del passthrough_module
# isort: off
from .traversal import *
from ._utils import *
from ._utils import _configuration_args, _get_exe_version_output
from ._deprecated import *