From a68dabbd7f3b2d942aaf55303ffbec61045b428c Mon Sep 17 00:00:00 2001 From: luzpaz Date: Mon, 27 Mar 2023 19:53:40 +0000 Subject: [PATCH] OpenSCAD: removed deprecated python2 unicode string Removed redundant python2 unicode syntax from `OpenSCADUtils.py` --- src/Mod/OpenSCAD/OpenSCADUtils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mod/OpenSCAD/OpenSCADUtils.py b/src/Mod/OpenSCAD/OpenSCADUtils.py index a03582d7b7..02167c747a 100644 --- a/src/Mod/OpenSCAD/OpenSCADUtils.py +++ b/src/Mod/OpenSCAD/OpenSCADUtils.py @@ -153,9 +153,9 @@ def callopenscad(inputfilename,outputfilename=None, outputext='csg', keepname=Fa raise OpenSCADError('%s %s\n' % (stdoutd.strip(),stderrd.strip())) #raise Exception,'stdout %s\n stderr%s' %(stdoutd,stderrd) if stderrd.strip(): - FreeCAD.Console.PrintWarning(stderrd+u'\n') + FreeCAD.Console.PrintWarning(stderrd + '\n') if stdoutd.strip(): - FreeCAD.Console.PrintMessage(stdoutd+u'\n') + FreeCAD.Console.PrintMessage(stdoutd + '\n') return stdoutd preferences = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Mod/OpenSCAD") @@ -651,7 +651,7 @@ def process_ObjectsViaOpenSCADShape(doc, children, name, maxmeshpoints=None): return process3D_ObjectsViaOpenSCADShape(children,name,maxmeshpoints) else: FreeCAD.Console.PrintError( translate('OpenSCAD',\ - "OpenSCAD file contains both 2D and 3D shapes. That is not supported in this importer, all shapes must have the same dimensionality.")+u'\n') + "OpenSCAD file contains both 2D and 3D shapes. That is not supported in this importer, all shapes must have the same dimensionality.")+'\n') def process_ObjectsViaOpenSCAD(doc,children,name): if all((not obj.Shape.isNull() and obj.Shape.Volume == 0) \ @@ -662,7 +662,7 @@ def process_ObjectsViaOpenSCAD(doc,children,name): return process3D_ObjectsViaOpenSCAD(doc,children,name) else: FreeCAD.Console.PrintError( translate('OpenSCAD',\ - "Error: either all shapes must be 2D or all shapes must be 3D")+u'\n') + "Error: either all shapes must be 2D or all shapes must be 3D") + '\n') def removesubtree(objs):