Closed kitterma closed 1 week ago
It's used on line 17 of xml2rfc/writers/legacy_html.py as a fallback, so it won't actually cause a problem, but OTOH, this is old enough that I would guess it can go away.
Yes, it's a fallback for html.escape ^1. html.escape has been available since Python 3.2 ^2 so the import of cgi.escape can go away.
html.escape
cgi.escape
try: from html import escape except ImportError: from cgi import escape
Describe the issue
It's used on line 17 of xml2rfc/writers/legacy_html.py as a fallback, so it won't actually cause a problem, but OTOH, this is old enough that I would guess it can go away.
Code of Conduct