Skip to content

Commit

Permalink
Fix import for Flask 3.0 and newer.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jan 2, 2024
1 parent 9526a27 commit 7d169da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion micawber/contrib/mcflask.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
from flask import Markup
try:
from markupsafe import Markup
except ImportError:
from flask import Markup
from micawber import parse_text, parse_html, extract, extract_html


Expand Down

0 comments on commit 7d169da

Please sign in to comment.