Skip to content

Deprecate 'autoescape' and 'with' extensions#1243

Merged
amy-lei merged 1 commit intopallets:masterfrom
MLH-Fellowship:deprecate-extension
Jan 30, 2021
Merged

Deprecate 'autoescape' and 'with' extensions#1243
amy-lei merged 1 commit intopallets:masterfrom
MLH-Fellowship:deprecate-extension

Conversation

@FawziyahAlebiosu
Copy link
Copy Markdown
Contributor

Fixes #1203

Summary:
WithExtension and AutoEscapeExtension now have a display that warns users that they are deprecated and will be removed in 3.1
The 9 tests that rely/test these extensions were modified to include a with deprecation clause so that the deprecation warning can be part of the expected behavior

Comment thread src/jinja2/ext.py Outdated
Comment thread src/jinja2/ext.py Outdated
Comment thread src/jinja2/ext.py Outdated
Comment thread src/jinja2/ext.py Outdated
Comment thread src/jinja2/ext.py Outdated
Comment thread tests/test_ext.py Outdated
@amy-lei amy-lei force-pushed the deprecate-extension branch from 4fa00ed to 1843d6d Compare January 29, 2021 21:57
@amy-lei amy-lei changed the title Deprecate warning for autoescape and with extension Deprecate 'autoescape' and 'with' extensions Jan 29, 2021
@amy-lei amy-lei added this to the 3.0.0 milestone Jan 30, 2021
@amy-lei amy-lei merged commit b5a00c8 into pallets:master Jan 30, 2021
@amy-lei amy-lei deleted the deprecate-extension branch January 30, 2021 03:17
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate merged extensions

3 participants