Date: Tue, 12 Jul 2022 12:46:08 GMT From: Oleksii Samorukov <samm@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 038a08951124 - main - www/trac-devel: fix build with a recent Python version, patch adopted from the upstream Message-ID: <202207121246.26CCk8Sk073070@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by samm: URL: https://cgit.FreeBSD.org/ports/commit/?id=038a08951124293872fa3f90afcc8d63c73e7600 commit 038a08951124293872fa3f90afcc8d63c73e7600 Author: Oleksii Samorukov <samm@FreeBSD.org> AuthorDate: 2022-07-12 12:39:03 +0000 Commit: Oleksii Samorukov <samm@FreeBSD.org> CommitDate: 2022-07-12 12:45:48 +0000 www/trac-devel: fix build with a recent Python version, patch adopted from the upstream --- www/trac-devel/files/patch-trac_util_html.py | 10 ++++++---- 1 file 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207121246.26CCk8Sk073070>