Skip to content
Myr

fix importing Markup from flask

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Lucas Werkmeister · committed by David Lord · parent 345f184 · Browse files · 2 files+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−1 removed

  • other:+3 added−1 removed

2 files+3 added−1 removed

modified:src/flask/__init__.py+1 added-1 removed
74 unmodified lines
75 stacklevel=2,76 )77 return escape7879 if name == "escape":79 if name == "Markup":80 import warnings81 from markupsafe import Markup8283 warnings.warn(
19 unmodified lines
modified:CHANGES.rst+2 added
1 unmodified line
2-------------34Unreleased56- Restore deprecated ``from flask import Markup``. :issue:`5084`789Version 2.3.010-------------1112Released 2023-04-25
1475 unmodified lines