diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 14:23:30 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 14:23:30 +0100 |
commit | 2142c2cca02113647594f5b80d280be6a5278d23 (patch) | |
tree | 78a1c1b38f3ddcdef8c0a55ceab62550beb9ec72 | |
parent | 6b4101dbe1c3255ab905ea0833c54c34f3540037 (diff) |
Rename fd -> fh since it's a file handler, not descriptor
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rwxr-xr-x | monitor-menu.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor-menu.py b/monitor-menu.py index b7195fe..70adb69 100755 --- a/monitor-menu.py +++ b/monitor-menu.py @@ -22,8 +22,8 @@ d = dialog.Dialog() class MonitorMenu(): def __init__(self, config_file='~/.config/monitor-profiles.json'): - with open(expanduser(config_file)) as fd: - self.profiles = json.load(fd) + with open(expanduser(config_file)) as fh: + self.profiles = json.load(fh) def run(self, profile_idx=None): choices = [] |