From: David Lord Date: Tue, 9 Nov 2021 20:46:20 +0000 (-0800) Subject: remove deprecated unicode_join runtime alias X-Git-Tag: 3.1.0~22^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88745a2b9edc536322828b162695353fa2d95bff;p=thirdparty%2Fjinja.git remove deprecated unicode_join runtime alias --- diff --git a/CHANGES.rst b/CHANGES.rst index 35dcd78e..7a3c420c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 diff --git a/src/jinja2/runtime.py b/src/jinja2/runtime.py index 2346cf2b..764091aa 100644 --- a/src/jinja2/runtime.py +++ b/src/jinja2/runtime.py @@ -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],