LGTM: various fixes for using string operator instead of numeric

This commit is contained in:
luz.paz
2019-10-22 10:42:18 -04:00
committed by Yorik van Havre
parent ab9659eefb
commit 30d2e29e0c
23 changed files with 49 additions and 54 deletions

View File

@@ -69,7 +69,7 @@ class TemplatePyMod_Cmd2:
p=PolygonCreator(d,v,10)
def IsActive(self):
if FreeCAD.ActiveDocument == None:
if FreeCAD.ActiveDocument is None:
return False
else:
return True
@@ -159,7 +159,7 @@ class TemplatePyMod_Cmd5:
from pivy import coin
global myRenderArea
if myRenderArea == None:
if myRenderArea is None:
root = coin.SoSeparator()
myCamera = coin.SoPerspectiveCamera()
myMaterial = coin.SoMaterial()