super().__init__(environment)
warnings.warn(
"The 'with' extension is deprecated and will be removed in"
- " version 3.1. This is built in now.",
+ " Jinja 3.1. This is built in now.",
DeprecationWarning,
stacklevel=2,
)
def __init__(self, environment):
super().__init__(environment)
warnings.warn(
- "The 'autoescape' extension is deprecated and will be removed in"
- " version 3.1. This is built in now.",
+ "The 'autoescape' extension is deprecated and will be"
+ " removed in Jinja 3.1. This is built in now.",
DeprecationWarning,
stacklevel=2,
)
def contextfilter(f):
"""Pass the context as the first argument to the decorated function.
- .. deprecated:: 3.0.0
- Use :func:`~jinja2.pass_context` instead.
+ .. deprecated:: 3.0
+ Will be removed in Jinja 3.1. Use :func:`~jinja2.pass_context`
+ instead.
"""
warnings.warn(
"'contextfilter' is renamed to 'pass_context', the old name"
"""Pass the eval context as the first argument to the decorated
function.
- .. deprecated:: 3.0.0
- Use :func:`~jinja2.pass_eval_context` instead.
+ .. deprecated:: 3.0
+ Will be removed in Jinja 3.1. Use
+ :func:`~jinja2.pass_eval_context` instead.
.. versionadded:: 2.4
"""
"""Pass the environment as the first argument to the decorated
function.
- .. deprecated:: 3.0.0
- Use :func:`~jinja2.pass_environment` instead.
+ .. deprecated:: 3.0
+ Will be removed in Jinja 3.1. Use
+ :func:`~jinja2.pass_environment` instead.
"""
warnings.warn(
"'environmentfilter' is renamed to 'pass_environment', the old"
warnings.warn(
"This template must be recompiled with at least Jinja 3.0, or"
- " it will fail in 3.1.",
+ " it will fail in Jinja 3.1.",
DeprecationWarning,
stacklevel=2,
)
def contextfunction(f):
"""Pass the context as the first argument to the decorated function.
- .. deprecated:: 3.0.0
- Use :func:`~jinja2.pass_context` instead.
+ .. deprecated:: 3.0
+ Will be removed in Jinja 3.1. Use :func:`~jinja2.pass_context`
+ instead.
"""
warnings.warn(
"'contextfunction' is renamed to 'pass_context', the old name"
"""Pass the eval context as the first argument to the decorated
function.
- .. deprecated:: 3.0.0
- Use :func:`~jinja2.pass_eval_context` instead.
+ .. deprecated:: 3.0
+ Will be removed in Jinja 3.1. Use
+ :func:`~jinja2.pass_eval_context` instead.
.. versionadded:: 2.4
"""
"""Pass the environment as the first argument to the decorated
function.
- .. deprecated:: 3.0.0
- Use :func:`~jinja2.pass_environment` instead.
+ .. deprecated:: 3.0
+ Will be removed in Jinja 3.1. Use
+ :func:`~jinja2.pass_environment` instead.
"""
warnings.warn(
"'environmentfunction' is renamed to 'pass_environment', the"
warnings.warn(
"'unicode_urlencode' has been renamed to 'url_quote'. The old"
- " name will be removed in version 3.1.",
+ " name will be removed in Jinja 3.1.",
DeprecationWarning,
stacklevel=2,
)