fix importing Markup from flask
This commit is contained in:
parent
345f18442c
commit
0ec9192cf2
2 changed files with 3 additions and 1 deletions
|
|
@ -3,6 +3,8 @@ Version 2.3.1
|
||||||
|
|
||||||
Unreleased
|
Unreleased
|
||||||
|
|
||||||
|
- Restore deprecated ``from flask import Markup``. :issue:`5084`
|
||||||
|
|
||||||
|
|
||||||
Version 2.3.0
|
Version 2.3.0
|
||||||
-------------
|
-------------
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ def __getattr__(name):
|
||||||
)
|
)
|
||||||
return escape
|
return escape
|
||||||
|
|
||||||
if name == "escape":
|
if name == "Markup":
|
||||||
import warnings
|
import warnings
|
||||||
from markupsafe import Markup
|
from markupsafe import Markup
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue