diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2023-11-06 15:45:08 -0500 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2023-11-06 15:45:08 -0500 |
commit | 80cd8af9567bf2ddeb017ea738de0adb4fba2543 (patch) | |
tree | 035fda7731ab8fc8409c7f72c18a401a2b07401d /contrib | |
parent | f6090c7e17b5a7801a32695b6b0b2e6959386881 (diff) | |
download | calcurse-80cd8af9567bf2ddeb017ea738de0adb4fba2543.tar.gz calcurse-80cd8af9567bf2ddeb017ea738de0adb4fba2543.zip |
calcurse-caldav: use isinstance() instead of comparing types
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/caldav/calcurse-caldav.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py index 8cccdf7..5efd306 100755 --- a/contrib/caldav/calcurse-caldav.py +++ b/contrib/caldav/calcurse-caldav.py @@ -77,7 +77,7 @@ class Config: for key, val in config.items(sec): if key not in self._map[sec]: die('Unexpected config key in section {}: {}'.format(sec, key)) - if type(self._map[sec][key]) == bool: + if isinstance(self._map[sec][key], bool): self._map[sec][key] = config.getboolean(sec, key) else: self._map[sec][key] = val |