Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-19 03:35:45 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-19 03:35:45 +0300
commit9cc2ad1eaf941d8ed3b5542a3d5cdfccec7ba60b (patch)
tree43ea30ad9109c60886e523a3d7d38b6c9e2b2c23 /development_iskeyfree.py
parentfb75f259861bf3dcd82abfab8b10b83da947053e (diff)
Fix invalid string comparisons
Identity checks should never be used with strings, it may fail based on Python's interning logic.
Diffstat (limited to 'development_iskeyfree.py')
-rw-r--r--development_iskeyfree.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/development_iskeyfree.py b/development_iskeyfree.py
index 7851afee..332e11d4 100644
--- a/development_iskeyfree.py
+++ b/development_iskeyfree.py
@@ -105,18 +105,18 @@ class MyChecker():
cls.mylist.clear()
for e in sortkeys:
cmd = ""
- if e[2] is not "":
+ if e[2] != "":
cmd += e[2] + "+"
- if e[3] is not "":
+ if e[3] != "":
cmd += e[3] + "+"
- if e[4] is not "":
+ if e[4] != "":
cmd += e[4] + "+"
- if e[5] is not "":
+ if e[5] != "":
cmd += e[5] + "+"
cmd += e[1]
- if e[6] is not "":
+ if e[6] != "":
cmd += " " + e[6]
cls.mylist.append([e[0], cmd])