diff --git a/www/trac-devel/files/patch-trac_util_html.py b/www/trac-devel/files/patch-trac_util_html.py index e99992efd7d1..fdb5c8fd3472 100644 --- a/www/trac-devel/files/patch-trac_util_html.py +++ b/www/trac-devel/files/patch-trac_util_html.py @@ -1,11 +1,13 @@ --- trac/util/html.py.orig 2021-05-09 23:08:49 UTC +++ trac/util/html.py -@@ -24,7 +24,7 @@ import sys - from html import entities +@@ -25,6 +25,10 @@ from html import entities from html.parser import HTMLParser --from markupsafe import Markup, escape as escape_quotes -+from markupsafe import Markup, escape as escape_quotes, soft_unicode + from markupsafe import Markup, escape as escape_quotes ++try: ++ from markupsafe import soft_str as soft_unicode ++except ImportError: ++ from markupsafe import soft_unicode try: from babel.support import LazyProxy