]> jfr.im git - yt-dlp.git/blob - yt_dlp/compat/_deprecated.py
[ie/GodResource] Add extractor (#9629)
[yt-dlp.git] / yt_dlp / compat / _deprecated.py
1 """Deprecated - New code should avoid these"""
2 import warnings
3
4 from .compat_utils import passthrough_module
5
6 # XXX: Implement this the same way as other DeprecationWarnings without circular import
7 passthrough_module(__name__, '.._legacy', callback=lambda attr: warnings.warn(
8 DeprecationWarning(f'{__name__}.{attr} is deprecated'), stacklevel=6))
9 del passthrough_module
10
11 import base64
12 import urllib.error
13 import urllib.parse
14
15 compat_str = str
16
17 compat_b64decode = base64.b64decode
18
19 compat_urlparse = urllib.parse
20 compat_parse_qs = urllib.parse.parse_qs
21 compat_urllib_parse_unquote = urllib.parse.unquote
22 compat_urllib_parse_urlencode = urllib.parse.urlencode
23 compat_urllib_parse_urlparse = urllib.parse.urlparse