Skip to content

Commit

Permalink
Merge pull request LeGoffLoic#31 from glm-smaraux/fix_isNone
Browse files Browse the repository at this point in the history
fix two == None or != None
  • Loading branch information
glm-smaraux authored Mar 26, 2019
2 parents e9e5a77 + 3a09cba commit 2de941f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodz_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ def editNode(self, node, newName=None):

oldName = node.name

if newName != None:
if newName is not None:
# Check for name clashes
if newName in self.scene().nodes.keys():
print 'A node with the same name already exists : {0}'.format(newName)
Expand Down Expand Up @@ -915,7 +915,7 @@ def editAttribute(self, node, index, newName=None, newIndex=None):
print 'Attribute creation aborted !'
return

if newName != None:
if newName is not None:
if newName in node.attrs:
print 'An attribute with the same name already exists : {0}'.format(newName)
print 'Attribute edition aborted !'
Expand Down

0 comments on commit 2de941f

Please sign in to comment.