Merge pull request #5085 from lucaswerkmeister/patch-1

Fix importing Markup from flask
This commit is contained in:
David Lord 2023-04-25 14:06:22 -06:00 committed by GitHub
commit 0867dce42c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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