aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksii Samorukov <samm@FreeBSD.org>2022-07-12 12:39:03 +0000
committerOleksii Samorukov <samm@FreeBSD.org>2022-07-14 15:39:00 +0000
commitdedf16bf59c3a82ad7b886557d685845a5e7b18a (patch)
tree7d3ae079d6abd8773e8c9dfef91f22be59dae7b8
parent82633a6049d118789fd7afcb68e95811c4f1c827 (diff)
downloadports-dedf16bf59c3a82ad7b886557d685845a5e7b18a.tar.gz
ports-dedf16bf59c3a82ad7b886557d685845a5e7b18a.zip
www/trac-devel: fix build with a recent Python version, patch adopted from the upstream
(cherry picked from commit 038a08951124293872fa3f90afcc8d63c73e7600)
-rw-r--r--www/trac-devel/files/patch-trac_util_html.py10
1 files changed, 6 insertions, 4 deletions
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