From ae2b73567dfcb9073a3d3891fa620c344100dcdd Mon Sep 17 00:00:00 2001 From: Uwe Date: Sun, 31 Jul 2022 05:26:03 +0200 Subject: [PATCH] [SCAD] remove unnecessary Python 3 check we only support Python 3 --- src/Mod/OpenSCAD/OpenSCADUtils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/OpenSCAD/OpenSCADUtils.py b/src/Mod/OpenSCAD/OpenSCADUtils.py index 5ed6710f56..9cdbfa80dc 100644 --- a/src/Mod/OpenSCAD/OpenSCADUtils.py +++ b/src/Mod/OpenSCAD/OpenSCADUtils.py @@ -106,8 +106,7 @@ def searchforopenscadexe(): p1 = subprocess.Popen(['which','openscad'], stdout=subprocess.PIPE) if p1.wait() == 0: output = p1.stdout.read() - if sys.version_info.major >= 3: - output = output.decode("utf-8") + output = output.decode("utf-8") opath = output.split('\n')[0] return opath