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>2020-03-05 04:17:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-03-05 04:17:51 +0300
commit353492b181e08663b8cd3bc5733920b6fcdbcbe4 (patch)
treeda147d7655e042e29d713cdf22bd5fa90f73f074
parentbb977fbc723c44333f33b6d5617354240ac9c9b7 (diff)
Fix incorrect identity comparisons in power_sequencer
-rw-r--r--power_sequencer/scripts/BPSProxy/bpsproxy/commands.py2
-rw-r--r--power_sequencer/scripts/BPSProxy/bpsproxy/utils.py2
-rw-r--r--power_sequencer/scripts/BPSRender/bpsrender/helpers.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/power_sequencer/scripts/BPSProxy/bpsproxy/commands.py b/power_sequencer/scripts/BPSProxy/bpsproxy/commands.py
index 72c81ccf..fd41619d 100644
--- a/power_sequencer/scripts/BPSProxy/bpsproxy/commands.py
+++ b/power_sequencer/scripts/BPSProxy/bpsproxy/commands.py
@@ -186,5 +186,5 @@ def get_commands_vi(cfg, clargs, **kwargs):
An iterator with the 1st element as a tag (the `what` parameter) and the 2nd
element as the iterator of the actual commands.
"""
- ws = filter(lambda x: x is not "all", cfg["extensions"])
+ ws = filter(lambda x: x != "all", cfg["extensions"])
return chain.from_iterable(map(lambda w: get_commands(cfg, clargs, what=w, **kwargs), ws))
diff --git a/power_sequencer/scripts/BPSProxy/bpsproxy/utils.py b/power_sequencer/scripts/BPSProxy/bpsproxy/utils.py
index 832a0beb..2f5b7c5e 100644
--- a/power_sequencer/scripts/BPSProxy/bpsproxy/utils.py
+++ b/power_sequencer/scripts/BPSProxy/bpsproxy/utils.py
@@ -36,7 +36,7 @@ def checktools(tools):
msg = ["BPSProxy couldn't find external dependencies:"]
msg += [
"[{check}] {tool}: {path}".format(
- check="v" if path is not "" else "X", tool=tool, path=path or "NOT FOUND"
+ check="v" if path != "" else "X", tool=tool, path=path or "NOT FOUND"
)
for tool, path in check["tools"]
]
diff --git a/power_sequencer/scripts/BPSRender/bpsrender/helpers.py b/power_sequencer/scripts/BPSRender/bpsrender/helpers.py
index 9ebcf2b0..58f79775 100644
--- a/power_sequencer/scripts/BPSRender/bpsrender/helpers.py
+++ b/power_sequencer/scripts/BPSRender/bpsrender/helpers.py
@@ -41,7 +41,7 @@ def checktools(tools):
msg = ["BPSRender couldn't find external dependencies:"]
msg += [
"[{check}] {tool}: {path}".format(
- check="v" if path is not "" else "X", tool=tool, path=path or "NOT FOUND"
+ check="v" if path != "" else "X", tool=tool, path=path or "NOT FOUND"
)
for tool, path in check["tools"]
]