Consistent black formatting of all Path python files

This commit is contained in:
Markus Lampert
2022-02-28 21:06:16 -08:00
parent 8583894284
commit 934b0aaa07
93 changed files with 5216 additions and 3118 deletions

View File

@@ -332,8 +332,8 @@ class ObjectProfile(PathAreaOp.ObjectOp):
params["MiterLimit"] = obj.MiterLimit
if obj.SplitArcs:
params['Explode'] = True
params['FitArcs'] = False
params["Explode"] = True
params["FitArcs"] = False
return params
@@ -376,7 +376,8 @@ class ObjectProfile(PathAreaOp.ObjectOp):
shapes = []
remainingObjBaseFeatures = []
self.isDebug = True if PathLog.getLevel(PathLog.thisModule()) == 4 else False
self.inaccessibleMsg = translate("PathProfile",
self.inaccessibleMsg = translate(
"PathProfile",
"The selected edge(s) are inaccessible. If multiple, re-ordering selection might work.",
)
self.offsetExtra = obj.OffsetExtra.Value
@@ -480,7 +481,9 @@ class ObjectProfile(PathAreaOp.ObjectOp):
)
except Exception as ee:
# PathUtils.getEnvelope() failed to return an object.
msg = translate("PathProfile", "Unable to create path for face(s).")
msg = translate(
"PathProfile", "Unable to create path for face(s)."
)
PathLog.error(msg + "\n{}".format(ee))
cont = False
@@ -623,7 +626,10 @@ class ObjectProfile(PathAreaOp.ObjectOp):
shapes.append(tup)
else:
if zDiff < self.JOB.GeometryTolerance.Value:
msg = translate("PathProfile", "Check edge selection and Final Depth requirements for profiling open edge(s).")
msg = translate(
"PathProfile",
"Check edge selection and Final Depth requirements for profiling open edge(s).",
)
PathLog.error(msg)
else:
PathLog.error(self.inaccessibleMsg)