power_sequencer: fix invalid identity checks

This commit is contained in:
Campbell Barton 2020-01-29 13:40:19 +11:00
parent b322cc269c
commit dac02ccf1b
3 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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"]
]

View File

@ -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"]
]