Simplify by replacing "and or" with a ternary
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
tuna-cmd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tuna-cmd.py b/tuna-cmd.py
index 122d09a0de2a..1e7bf61021d3 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -751,7 +751,7 @@ def main():
return
try:
- cpus_filtered = filter and cpu_list or []
+ cpus_filtered = filter if cpu_list else []
app = tuna_gui.main_gui(kthreads, uthreads, cpus_filtered, gui_refresh,
disable_perf)
app.run()
except KeyboardInterrupt:
--
2.31.1