diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-29 05:40:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-29 05:40:19 +0300 |
commit | dac02ccf1b0914e945fa834b4a21d4f98b218c48 (patch) | |
tree | e15b362afd1d3eae746a3fe3da2bf084ba6644b7 /power_sequencer | |
parent | b322cc269cafc208294355ea79db714822addf38 (diff) |
power_sequencer: fix invalid identity checks
Diffstat (limited to 'power_sequencer')
-rw-r--r-- | power_sequencer/scripts/BPSProxy/bpsproxy/commands.py | 2 | ||||
-rw-r--r-- | power_sequencer/scripts/BPSProxy/bpsproxy/utils.py | 2 | ||||
-rw-r--r-- | power_sequencer/scripts/BPSRender/bpsrender/helpers.py | 2 |
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 d481c58f..a2f4388e 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 d6ae4f06..a33c34a9 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 251085ad..df74d333 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"] ] |