From c3558105382005ae675d76b62780712bc5de5ed4 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 7 Nov 2022 21:55:36 -0600 Subject: [PATCH] Start: Remove Py2 code --- src/Mod/Start/StartPage/StartPage.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/Mod/Start/StartPage/StartPage.py b/src/Mod/Start/StartPage/StartPage.py index 01eeba6d53..af546e6e5b 100644 --- a/src/Mod/Start/StartPage/StartPage.py +++ b/src/Mod/Start/StartPage/StartPage.py @@ -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