From: Oleg Broytman Date: Sat, 15 Jun 2024 22:37:01 +0000 (+0300) Subject: Refactor(reindex_blog.py): Get rid of `cgi` X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b1faa0c3970917d72b16947dc18249ebafec695d;p=phdru.name%2Fphdru.name.git Refactor(reindex_blog.py): Get rid of `cgi` --- diff --git a/reindex_blog.py b/reindex_blog.py index bc34887..6869448 100755 --- a/reindex_blog.py +++ b/reindex_blog.py @@ -5,7 +5,7 @@ __author__ = "Oleg Broytman " __copyright__ = "Copyright (C) 2006-2024 PhiloSoft Design" from calendar import _localized_month -import cgi +from html import escape import locale import sys, os from urllib.parse import quote, urljoin @@ -485,7 +485,7 @@ class AbsURLHTMLParser(_HTMLParser): def start_a(self, attrs): self.accumulator += '