aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/compat/_legacy.py
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2024-11-17 00:24:11 +0100
committerGitHub <noreply@github.com>2024-11-17 00:24:11 +0100
commitf95a92b3d0169a784ee15a138fbe09d82b2754a1 (patch)
treefa1e62aceeea805b1f8ed79ec810ee904aaf1b10 /yt_dlp/compat/_legacy.py
parent1d253b0a27110d174c40faf8fb1c999d099e0cde (diff)
[cleanup] Deprecate more compat functions (#11439)
Authored by: seproDev
Diffstat (limited to 'yt_dlp/compat/_legacy.py')
-rw-r--r--yt_dlp/compat/_legacy.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/yt_dlp/compat/_legacy.py b/yt_dlp/compat/_legacy.py
index dfc792eae..dae2c1459 100644
--- a/yt_dlp/compat/_legacy.py
+++ b/yt_dlp/compat/_legacy.py
@@ -30,7 +30,7 @@ from asyncio import run as compat_asyncio_run # noqa: F401
from re import Pattern as compat_Pattern # noqa: F401
from re import match as compat_Match # noqa: F401
-from . import compat_expanduser, compat_HTMLParseError, compat_realpath
+from . import compat_expanduser, compat_HTMLParseError
from .compat_utils import passthrough_module
from ..dependencies import brotli as compat_brotli # noqa: F401
from ..dependencies import websockets as compat_websockets # noqa: F401
@@ -78,7 +78,7 @@ compat_kwargs = lambda kwargs: kwargs
compat_map = map
compat_numeric_types = (int, float, complex)
compat_os_path_expanduser = compat_expanduser
-compat_os_path_realpath = compat_realpath
+compat_os_path_realpath = os.path.realpath
compat_print = print
compat_shlex_split = shlex.split
compat_socket_create_connection = socket.create_connection
@@ -104,5 +104,12 @@ compat_xml_parse_error = compat_xml_etree_ElementTree_ParseError = etree.ParseEr
compat_xpath = lambda xpath: xpath
compat_zip = zip
workaround_optparse_bug9161 = lambda: None
+compat_str = str
+compat_b64decode = base64.b64decode
+compat_urlparse = urllib.parse
+compat_parse_qs = urllib.parse.parse_qs
+compat_urllib_parse_unquote = urllib.parse.unquote
+compat_urllib_parse_urlencode = urllib.parse.urlencode
+compat_urllib_parse_urlparse = urllib.parse.urlparse
legacy = []