aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat/__init__.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 17:56:53 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2023-07-22 18:10:35 +0530
commita250b247334ce9f641e709cbb64974da6034a2b3 (patch)
tree61b9d391cf861ca626ca08befaf54319a248f7d1 /yt_dlp/compat/__init__.py
parent25b6e8f94679b4458550702b46e61249b875a4fd (diff)
downloadhypervideo-pre-a250b247334ce9f641e709cbb64974da6034a2b3.tar.lz
hypervideo-pre-a250b247334ce9f641e709cbb64974da6034a2b3.tar.xz
hypervideo-pre-a250b247334ce9f641e709cbb64974da6034a2b3.zip
[compat] Ensure submodules are imported correctly
Closes #7663
Diffstat (limited to 'yt_dlp/compat/__init__.py')
-rw-r--r--yt_dlp/compat/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/yt_dlp/compat/__init__.py b/yt_dlp/compat/__init__.py
index a41a80ebb..832a9138d 100644
--- a/yt_dlp/compat/__init__.py
+++ b/yt_dlp/compat/__init__.py
@@ -1,14 +1,11 @@
import os
import sys
-import warnings
import xml.etree.ElementTree as etree
-from ._deprecated import * # noqa: F401, F403
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=5))
+passthrough_module(__name__, '._deprecated')
+del passthrough_module
# HTMLParseError has been deprecated in Python 3.3 and removed in