]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/utils/__init__.py
[compat] Ensure submodules are imported correctly
[yt-dlp.git] / yt_dlp / utils / __init__.py
index 74b39e2c7b78dc5ba72b485260d08370bdf080fc..c267e326f0642d71bafb772fd80e970d2f96bffa 100644 (file)
@@ -1,14 +1,10 @@
-import warnings
-
+# flake8: noqa: F403
 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))
+passthrough_module(__name__, '._deprecated')
 del passthrough_module
 
 # isort: off
 from .traversal import *
 from ._utils import *
-from ._utils import _configuration_args, _get_exe_version_output
-from ._deprecated import *
+from ._utils import _configuration_args, _get_exe_version_output  # noqa: F401