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

@@ -446,7 +446,7 @@ def placements_on_path(shapeRotation, pathwire, count, xlate, align,
closedpath = DraftGeomUtils.isReallyClosed(pathwire)
normal = DraftGeomUtils.get_normal(pathwire)
# for backward compatibility with previous getNormal implementation
if normal == None:
if normal is None:
normal = App.Vector(0, 0, 1)
if forceNormal and normalOverride: