Skip to content
Myr

remove deprecated unicode_urlencode

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 6faf093 · Browse files · 2 files+1 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+1 added−12 removed

  • other:+1 added−12 removed

2 files+1 added−12 removed

modified:src/jinja2/utils.py-12 removed
415 unmodified lines
416417 return rv418419420def unicode_urlencode(obj: t.Any, charset: str = "utf-8", for_qs: bool = False) -> str:421 import warnings422423 warnings.warn(424 "'unicode_urlencode' has been renamed to 'url_quote'. The old"425 " name will be removed in Jinja 3.1.",426 DeprecationWarning,427 stacklevel=2,428 )429 return url_quote(obj, charset=charset, for_qs=for_qs)430431420@abc.MutableMapping.register421class LRUCache:422 """A simple LRU Cache implementation."""423
332 unmodified lines
modified:CHANGES.rst+1 added
18 unmodified lines
19 recompiled.20 - Legacy resolve mode for ``Context`` subclasses is no longer21 supported. Override ``resolve_or_missing`` instead of22 ``resolve``.23 - ``unicode_urlencode`` is renamed to ``url_quote``.242526Version 3.0.327-------------
911 unmodified lines