From ad93e74cd31941a89ce133f8a97b5b47bf0a0121 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 23 Dec 2021 14:24:43 +0100 Subject: Use in operator instead of successive OR Signed-off-by: Olivier Gayot --- monitor-menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'monitor-menu.py') diff --git a/monitor-menu.py b/monitor-menu.py index 70adb69..6e07155 100755 --- a/monitor-menu.py +++ b/monitor-menu.py @@ -36,7 +36,7 @@ class MonitorMenu(): code, profile_idx = d.menu('Select the profile you want to use.', choices=choices) - if code == d.ESC or code == d.CANCEL: + if code in (d.ESC, d.CANCEL): return profile = self.profiles[int(profile_idx)] -- cgit v1.2.3