apluslms / a-plus-rst-tools

Tools to publish RST course content for mooc-grader and a-plus. Should be cloned as a course submodule.
MIT License
6 stars 24 forks source link

Replaces the deprecated cgi package with the html package for escaping html strings #155

Closed oseppala closed 1 year ago

oseppala commented 1 year ago

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