2022-02-04 06:37:02 -07:00
|
|
|
"""Deprecated - New code should avoid these"""
|
2023-07-22 06:26:53 -06:00
|
|
|
import warnings
|
|
|
|
|
|
|
|
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=6))
|
|
|
|
del passthrough_module
|
2022-02-04 06:37:02 -07:00
|
|
|
|
|
|
|
import base64
|
2022-06-24 02:10:17 -06:00
|
|
|
import urllib.error
|
|
|
|
import urllib.parse
|
|
|
|
|
|
|
|
compat_str = str
|
2022-02-04 06:37:02 -07:00
|
|
|
|
|
|
|
compat_b64decode = base64.b64decode
|
2022-06-24 02:10:17 -06:00
|
|
|
|
|
|
|
compat_urlparse = urllib.parse
|
2022-02-04 06:37:02 -07:00
|
|
|
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
|