Draft: fix LGTM 'Testing for None should use the 'is' operator' alerrts

https://lgtm.com/projects/g/FreeCAD/FreeCAD/alerts/?mode=tree&ruleFocus=7900090
This commit is contained in:
luz paz
2021-02-03 11:25:48 -05:00
committed by wwmayer
parent 27a6dedf19
commit ccbc13ee82
6 changed files with 6 additions and 6 deletions

View File

@@ -70,7 +70,7 @@ def draftify(objectslist, makeblock=False, delete=True):
for cluster in Part.sortEdges(obj.Shape.Edges):
w = Part.Wire(cluster)
nobj = draftify_shape(w)
if nobj == None:
if nobj is None:
nobj = App.ActiveDocument.addObject("Part::Feature", obj.Name)
nobj.Shape = w
newobjlist.append(nobj)