diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 14:24:43 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 14:24:43 +0100 |
commit | ad93e74cd31941a89ce133f8a97b5b47bf0a0121 (patch) | |
tree | 11efdcbcd28f80a76aba7a7aba9d8d4fda8d43c4 /monitor-menu.py | |
parent | 2142c2cca02113647594f5b80d280be6a5278d23 (diff) |
Use in operator instead of successive OR
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'monitor-menu.py')
-rwxr-xr-x | monitor-menu.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)] |