cgi.escape was deprecated in Python 3.2 and removed in Python 3.8. The suggested workaround is to replace it with html.escape. The only difference is in that html.escape also escapes quotes which cgi.escape did not do. This is preferred to the earlier solution.
note: The html package is already in use in other files in a-plus-rst-tools
Description
cgi.escape was deprecated in Python 3.2 and removed in Python 3.8. The suggested workaround is to replace it with html.escape. The only difference is in that html.escape also escapes quotes which cgi.escape did not do. This is preferred to the earlier solution.
note: The html package is already in use in other files in a-plus-rst-tools