Skip to content

MainWindow: Use html.escape. Fix Python 3.8.

Lubosz Sarnecki requested to merge lubosz/alacarte:python3 into master

Python 3.2 deprecated and 3.8 removes the escape function from the cgi module. The official documentation states to use html.escape as replacement.

This makes Alacarte work with Python 3 for me.

See: https://docs.python.org/3.7/library/cgi.html#cgi.escape

Btw, are you planing to tag a release with Python 3? The last was tagged 5 years ago.

Merge request reports