You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
There might not be anything to do now, but the code that issues a DeprecationWarning since 3.0.0rc2 fails with an exception when jinja2.utils.Markup is used without arguments. The previous RC worked.
While looking for the cause, I found that documentation for the autoescape argument for jinja2.Environment mentions Markup without much context; is that an issue?
Environment:
Python version: 3.11.0a0
Jinja version: 3.0.0
The text was updated successfully, but these errors were encountered:
encukou
changed the title
jinja2.Markup() fails without deprecationjinja2.Markup() fails without deprecation warning
May 17, 2021
There might not be anything to do now, but the code that issues a
DeprecationWarning
since 3.0.0rc2 fails with an exception whenjinja2.utils.Markup
is used without arguments. The previous RC worked.The correct fix is to switch to
markupsafe
, but the exception makes it hard to find if an application usesMarkup()
first.While looking for the cause, I found that documentation for the autoescape argument for
jinja2.Environment
mentionsMarkup
without much context; is that an issue?Environment:
The text was updated successfully, but these errors were encountered: