1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
From: Sebastian Ramacher <sramacher@debian.org>
Date: Sun, 15 Dec 2024 21:33:15 +0100
Subject: Fix compatibility with Python 3.13
---
html_utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html_utils.py b/html_utils.py
index 4c53988..be35aa4 100644
--- a/html_utils.py
+++ b/html_utils.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-from cgi import escape as escape
+from html import escape as escape
def html_escape(s): return escape(s).replace("\n", "<br/>")
|