Skip to content
Snippets Groups Projects
Commit 038a0895 authored by Oleksii Samorukov's avatar Oleksii Samorukov
Browse files

www/trac-devel: fix build with a recent Python version, patch adopted from the upstream

parent 01086278
No related branches found
No related tags found
No related merge requests found
--- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment