diff --git a/micawber/contrib/mcflask.py b/micawber/contrib/mcflask.py index 96792d1..e784dc9 100644 --- a/micawber/contrib/mcflask.py +++ b/micawber/contrib/mcflask.py @@ -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