mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-118827: Remove Quoter
from urllib.parse
(#118828)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
This commit is contained in:
parent
52586f930f
commit
84c3191954
4 changed files with 10 additions and 15 deletions
|
@ -822,14 +822,6 @@ _ALWAYS_SAFE = frozenset(b'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
|||
b'_.-~')
|
||||
_ALWAYS_SAFE_BYTES = bytes(_ALWAYS_SAFE)
|
||||
|
||||
def __getattr__(name):
|
||||
if name == 'Quoter':
|
||||
warnings.warn('Deprecated in 3.11. '
|
||||
'urllib.parse.Quoter will be removed in Python 3.14. '
|
||||
'It was not intended to be a public API.',
|
||||
DeprecationWarning, stacklevel=2)
|
||||
return _Quoter
|
||||
raise AttributeError(f'module {__name__!r} has no attribute {name!r}')
|
||||
|
||||
class _Quoter(dict):
|
||||
"""A mapping from bytes numbers (in range(0,256)) to strings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue