fix importing Markup from flask

This commit is contained in:
Lucas Werkmeister 2023-04-25 21:10:05 +02:00 committed by David Lord
parent 345f18442c
commit 0ec9192cf2
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,8 @@ Version 2.3.1
Unreleased
- Restore deprecated ``from flask import Markup``. :issue:`5084`
Version 2.3.0
-------------

View file

@ -76,7 +76,7 @@ def __getattr__(name):
)
return escape
if name == "escape":
if name == "Markup":
import warnings
from markupsafe import Markup