Skip to content

Commit

Permalink
Merge pull request #1436 from pallets/deprecated-extensions
Browse files Browse the repository at this point in the history
fix context for deprecated extensions
  • Loading branch information
davidism committed May 14, 2021
2 parents 426c560 + b4d31e7 commit fb564a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Expand Up @@ -9,6 +9,8 @@ Unreleased
- Mark top-level names as exported so type checking understands
imports in user projects. :issue:`1426`
- Fix some types that weren't available in Python 3.6.0. :issue:`1433`
- The deprecation warning for unneeded ``autoescape`` and ``with_``
extensions shows more relevant context. :issue:`1429`


Version 3.0.0
Expand Down
4 changes: 2 additions & 2 deletions src/jinja2/ext.py
Expand Up @@ -604,7 +604,7 @@ def __init__(self, environment: Environment) -> None:
"The 'with' extension is deprecated and will be removed in"
" Jinja 3.1. This is built in now.",
DeprecationWarning,
stacklevel=2,
stacklevel=3,
)


Expand All @@ -615,7 +615,7 @@ def __init__(self, environment: Environment) -> None:
"The 'autoescape' extension is deprecated and will be"
" removed in Jinja 3.1. This is built in now.",
DeprecationWarning,
stacklevel=2,
stacklevel=3,
)


Expand Down

0 comments on commit fb564a8

Please sign in to comment.