From 255fa7fb147d1dd2a7087df38e7aef977b66af6f Mon Sep 17 00:00:00 2001 From: Jan ONDREJ (SAL) Date: Aug 28 2019 07:48:13 +0000 Subject: Added missing patch. --- diff --git a/python-tw2-core-py38.patch b/python-tw2-core-py38.patch new file mode 100644 index 0000000..6007a6f --- /dev/null +++ b/python-tw2-core-py38.patch @@ -0,0 +1,16 @@ +diff -urN tw2.core-2.2.6.orig/tw2/core/mako_util.py tw2.core-2.2.6/tw2/core/mako_util.py +--- tw2.core-2.2.6.orig/tw2/core/mako_util.py 2019-03-10 21:46:18.000000000 +0100 ++++ tw2.core-2.2.6/tw2/core/mako_util.py 2019-08-28 08:46:22.122620780 +0200 +@@ -3,7 +3,11 @@ + from copy import copy + + from markupsafe import Markup +-from cgi import escape ++try: ++ from cgi import escape ++except ImportError: ++ # python >=3.8 ++ from html import escape + import six + #from mako.filters import xml_escape +