]>
Commit | Line | Data |
---|---|---|
77f90330 | 1 | """Deprecated - New code should avoid these""" |
a250b247 | 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 | |
77f90330 | 10 | |
11 | import base64 | |
ac668111 | 12 | import urllib.error |
13 | import urllib.parse | |
14 | ||
15 | compat_str = str | |
77f90330 | 16 | |
17 | compat_b64decode = base64.b64decode | |
ac668111 | 18 | |
ac668111 | 19 | compat_urlparse = urllib.parse |
77f90330 | 20 | compat_parse_qs = urllib.parse.parse_qs |
77f90330 | 21 | compat_urllib_parse_unquote = urllib.parse.unquote |
77f90330 | 22 | compat_urllib_parse_urlencode = urllib.parse.urlencode |
23 | compat_urllib_parse_urlparse = urllib.parse.urlparse |