power_sequencer: fix invalid identity checks
This commit is contained in:
parent
b322cc269c
commit
dac02ccf1b
|
@ -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))
|
||||
|
|
|
@ -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"]
|
||||
]
|
||||
|
|
|
@ -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"]
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue