remove deprecated unicode_join runtime alias

This commit is contained in:
David Lord 2021-11-09 12:46:20 -08:00
parent 824b4d3e5b
commit 88745a2b9e
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
2 changed files with 2 additions and 12 deletions

View File

@ -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

View File

@ -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],