]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
remove deprecated extensions
authorDavid Lord <davidism@gmail.com>
Tue, 9 Nov 2021 20:37:01 +0000 (12:37 -0800)
committerDavid Lord <davidism@gmail.com>
Tue, 9 Nov 2021 20:37:01 +0000 (12:37 -0800)
CHANGES.rst
src/jinja2/ext.py

index cedf398be56c735bd1472790a040fd082cea841d..28b2928832a2a823d4976f785c8a5394df3c0bd4 100644 (file)
@@ -5,6 +5,11 @@ Version 3.1.0
 
 Unreleased
 
+-   Drop support for Python 3.6. :pr:`1534`
+-   Remove previously deprecated code. :pr:`1544`
+
+    -   ``WithExtension`` and ``AutoEscapeExtension`` are built-in now.
+
 
 Version 3.0.3
 -------------
index 3e982930c4ed496d7bb43058897a8f3268f6caeb..2377a3713dcbb74948ddba7bfca6bcb6dc892b1b 100644 (file)
@@ -2,7 +2,6 @@
 import pprint
 import re
 import typing as t
-import warnings
 
 from markupsafe import Markup
 
@@ -597,28 +596,6 @@ class LoopControlExtension(Extension):
         return nodes.Continue(lineno=token.lineno)
 
 
-class WithExtension(Extension):
-    def __init__(self, environment: Environment) -> None:
-        super().__init__(environment)
-        warnings.warn(
-            "The 'with' extension is deprecated and will be removed in"
-            " Jinja 3.1. This is built in now.",
-            DeprecationWarning,
-            stacklevel=3,
-        )
-
-
-class AutoEscapeExtension(Extension):
-    def __init__(self, environment: Environment) -> None:
-        super().__init__(environment)
-        warnings.warn(
-            "The 'autoescape' extension is deprecated and will be"
-            " removed in Jinja 3.1. This is built in now.",
-            DeprecationWarning,
-            stacklevel=3,
-        )
-
-
 class DebugExtension(Extension):
     """A ``{% debug %}`` tag that dumps the available variables,
     filters, and tests.
@@ -874,6 +851,4 @@ def babel_extract(
 i18n = InternationalizationExtension
 do = ExprStmtExtension
 loopcontrols = LoopControlExtension
-with_ = WithExtension
-autoescape = AutoEscapeExtension
 debug = DebugExtension