changeset 4329:73d83cb53673

plugin blog import dotclear: repalce deprecated `cgi` by `html`
author Goffi <goffi@goffi.org>
date Wed, 20 Nov 2024 14:35:09 +0100
parents f72d6b86f8dc
children cb32d8c6a040
files libervia/backend/plugins/plugin_blog_import_dotclear.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_blog_import_dotclear.py	Wed Nov 20 11:49:46 2024 +0100
+++ b/libervia/backend/plugins/plugin_blog_import_dotclear.py	Wed Nov 20 14:35:09 2024 +0100
@@ -28,7 +28,7 @@
 from collections import OrderedDict
 import itertools
 import time
-import cgi
+import html
 import os.path
 
 
@@ -188,7 +188,7 @@
             # we don't use atom:uri because it's used for jid in XMPP
             content = '{}\n<hr>\n<a href="{}">author website</a>'.format(
                 comment["comment_content"],
-                cgi.escape(comment["comment_site"]).replace('"', "%22"),
+                html.escape(comment["comment_site"]).replace('"', "%22"),
             )
         else:
             content = comment["comment_content"]