Skip to content

Commit

Permalink
Comparison with None is now using 'is' operator
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDaish authored and yorikvanhavre committed Apr 22, 2020
1 parent f6ffd12 commit 7490f3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Arch/ArchWall.py
Expand Up @@ -1004,7 +1004,7 @@ def onChanged(self, obj, prop):

if prop == "Length":
if (obj.Base and obj.Length.Value
and hasattr(self,"oldLength") and (self.oldLength != None)
and hasattr(self,"oldLength") and (self.oldLength is not None)
and (self.oldLength != obj.Length.Value)):

if hasattr(obj.Base,'Shape'):
Expand Down

0 comments on commit 7490f3f

Please sign in to comment.