mirror of
https://gitee.com/openharmony/third_party_jinja2
synced 2024-11-23 07:10:31 +00:00
remove deprecated unicode_join runtime alias
This commit is contained in:
parent
824b4d3e5b
commit
88745a2b9e
@ -15,6 +15,8 @@ Unreleased
|
||||
``environmentfilter`` and ``environmentfunction`` are replaced
|
||||
by ``pass_environment``.
|
||||
- ``Markup`` and ``escape`` should be imported from MarkupSafe.
|
||||
- Compiled templates from very old Jinja versions may need to be
|
||||
recompiled.
|
||||
|
||||
|
||||
Version 3.0.3
|
||||
|
@ -89,18 +89,6 @@ def str_join(seq: t.Iterable[t.Any]) -> str:
|
||||
return concat(map(str, seq))
|
||||
|
||||
|
||||
def unicode_join(seq: t.Iterable[t.Any]) -> str:
|
||||
import warnings
|
||||
|
||||
warnings.warn(
|
||||
"This template must be recompiled with at least Jinja 3.0, or"
|
||||
" it will fail in Jinja 3.1.",
|
||||
DeprecationWarning,
|
||||
stacklevel=2,
|
||||
)
|
||||
return str_join(seq)
|
||||
|
||||
|
||||
def new_context(
|
||||
environment: "Environment",
|
||||
template_name: t.Optional[str],
|
||||
|
Loading…
Reference in New Issue
Block a user