diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-27 18:31:47 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-05-27 18:31:47 +0100 |
commit | dff018e7cb6c885433e1e91fe0e5162e1e329301 (patch) | |
tree | 134e5229f87ae6e813368057260c404d93e4e6aa /alot/settings | |
parent | 7f800370151466fb07db1eba4b3b343cbd03561c (diff) |
remove old new-style classes syntax
Python3 only supports "new-style" classes (those extending object),
and we don't need to explicitly inherit from this root class any more.
See http://pylint-messages.wikidot.com/messages:c1001
Diffstat (limited to 'alot/settings')
-rw-r--r-- | alot/settings/manager.py | 2 | ||||
-rw-r--r-- | alot/settings/theme.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/alot/settings/manager.py b/alot/settings/manager.py index c88d7d85..64167c37 100644 --- a/alot/settings/manager.py +++ b/alot/settings/manager.py @@ -27,7 +27,7 @@ DATA_DIRS = get_xdg_env('XDG_DATA_DIRS', '/usr/local/share:/usr/share').split(':') -class SettingsManager(object): +class SettingsManager: """Organizes user settings""" def __init__(self): self.hooks = None diff --git a/alot/settings/theme.py b/alot/settings/theme.py index e6d6eae8..2794be2c 100644 --- a/alot/settings/theme.py +++ b/alot/settings/theme.py @@ -11,7 +11,7 @@ DEFAULTSPATH = os.path.join(os.path.dirname(__file__), '..', 'defaults') DUMMYDEFAULT = ('default',) * 6 -class Theme(object): +class Theme: """Colour theme""" def __init__(self, path): """ |