Skip to content
Myr

Merge pull request #1436 from pallets/deprecated-extensions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fix context for deprecated extensions

authored by David Lord · committed by GitHub · parents 426c560, b4d31e7 · Browse files · 2 files+4 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−2 removed

  • other:+4 added−2 removed

2 files+4 added−2 removed

modified:src/jinja2/ext.py+2 added-2 removed
602 unmodified lines
603 warnings.warn(604 "The 'with' extension is deprecated and will be removed in"605 " Jinja 3.1. This is built in now.",606 DeprecationWarning,607 stacklevel=2,607 stacklevel=3,608 )609610611class AutoEscapeExtension(Extension):
2 unmodified lines
614 warnings.warn(615 "The 'autoescape' extension is deprecated and will be"616 " removed in Jinja 3.1. This is built in now.",617 DeprecationWarning,618 stacklevel=2,618 stacklevel=3,619 )620621622class DebugExtension(Extension):
257 unmodified lines
modified:CHANGES.rst+2 added
7 unmodified lines
8- Update MarkupSafe dependency to >= 2.0. :pr:`1418`9- Mark top-level names as exported so type checking understands10 imports in user projects. :issue:`1426`11- Fix some types that weren't available in Python 3.6.0. :issue:`1433`12- The deprecation warning for unneeded ``autoescape`` and ``with_``13 extensions shows more relevant context. :issue:`1429`141516Version 3.0.017-------------
858 unmodified lines