Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate 'autoescape' and 'with' extensions #1243

Merged
merged 1 commit into from
Jan 30, 2021

Conversation

FawziyahAlebiosu
Copy link
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

src/jinja2/ext.py Outdated Show resolved Hide resolved
src/jinja2/ext.py Outdated Show resolved Hide resolved
src/jinja2/ext.py Outdated Show resolved Hide resolved
src/jinja2/ext.py Outdated Show resolved Hide resolved
src/jinja2/ext.py Outdated Show resolved Hide resolved
tests/test_ext.py Outdated Show resolved Hide resolved
@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