mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-02 12:42:23 +00:00

Appears to be unused, and is still Python2 code. To be Python3, these lines need to change: - f = file(fn) + f = open(fn, encoding="utf-8") - gettext = f.read().decode("utf8") + gettext = f.read() Even knowing how to make it work, it still doesn't seem useful to keep. wmlunits uses html_output.Translation, but that's not this class. It's a wrapper around Python's standard gettext library, in html_output.py.