LGTM: various fixes for using string operator instead of numeric

This commit is contained in:
luz.paz
2019-10-25 10:33:12 -03:00
committed by Yorik van Havre
parent e4c8890d52
commit 1bc33025d6
23 changed files with 49 additions and 54 deletions
+2 -2
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()