diff options
author | David Lord <davidism@gmail.com> | 2021-11-09 12:37:01 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2021-11-09 12:37:01 -0800 |
commit | ac9dbfcf504e71acabdd78ab12b850202a165e5d (patch) | |
tree | a853c778fa07df931596f955902eeecd408a7a67 /src | |
parent | a42b291bf2a3ac69f978ee88418ca6d0c7879d1e (diff) | |
download | jinja2-ac9dbfcf504e71acabdd78ab12b850202a165e5d.tar.gz |
remove deprecated extensions
Diffstat (limited to 'src')
-rw-r--r-- | src/jinja2/ext.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/jinja2/ext.py b/src/jinja2/ext.py index 3e98293..2377a37 100644 --- a/src/jinja2/ext.py +++ b/src/jinja2/ext.py @@ -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 |