Start: Remove Py2 code

This commit is contained in:
Chris Hennes
2022-11-07 21:55:36 -06:00
committed by Uwe
parent fa8e0a6865
commit ca8609ef3a

View File

@@ -580,15 +580,6 @@ def handle():
Start.iconbank = iconbank
Start.tempfolder = tempfolder
# make sure we are always returning unicode
# HTML should be a str-object and therefore:
# - for py2 HTML is a bytes object and has to be decoded to unicode
# - for py3 HTML is already a unicode object and the next 2 lines can be removed
# once py2-support is removed.
if isinstance(HTML, bytes):
HTML = HTML.decode("utf8")
return HTML