Skip to content

Commit

Permalink
calcurse-caldav: use isinstance() instead of comparing types
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
  • Loading branch information
Lukas Fleischer committed Nov 6, 2023
1 parent f6090c7 commit 80cd8af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/caldav/calcurse-caldav.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, fn):
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
Expand Down

0 comments on commit 80cd8af

Please sign in to comment.