summaryrefslogtreecommitdiff
path: root/alot/addressbook
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-21 09:53:40 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-21 09:53:40 +0100
commitf9b1260a6c4dec2c3b4291c7a206e04ec6b691bd (patch)
treec7ac236bff044dd8ef73ac84d75315793f8884ca /alot/addressbook
parent4d467ddda9266627f9c857142ea602d853b57c5e (diff)
Use super() where applicable.
Diffstat (limited to 'alot/addressbook')
-rw-r--r--alot/addressbook/abook.py2
-rw-r--r--alot/addressbook/external.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/alot/addressbook/abook.py b/alot/addressbook/abook.py
index 6e2aa756..705a646d 100644
--- a/alot/addressbook/abook.py
+++ b/alot/addressbook/abook.py
@@ -13,7 +13,7 @@ class AbookAddressBook(AddressBook):
:param path: path to abook addressbook file
:type path: str
"""
- AddressBook.__init__(self, **kwargs)
+ super().__init__(**kwargs)
DEFAULTSPATH = os.path.join(os.path.dirname(__file__), '..',
'defaults')
self._spec = os.path.join(DEFAULTSPATH, 'abook_contacts.spec')
diff --git a/alot/addressbook/external.py b/alot/addressbook/external.py
index eea70cbc..cd300a42 100644
--- a/alot/addressbook/external.py
+++ b/alot/addressbook/external.py
@@ -34,7 +34,7 @@ class ExternalAddressbook(AddressBook):
according to the search string.
:type external_filtering: bool
"""
- AddressBook.__init__(self, **kwargs)
+ super().__init__(**kwargs)
self.commandline = commandline
self.regex = regex
self.reflags = reflags