From f9b1260a6c4dec2c3b4291c7a206e04ec6b691bd Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 21 Jan 2021 09:53:40 +0100 Subject: Use super() where applicable. --- alot/addressbook/abook.py | 2 +- alot/addressbook/external.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'alot/addressbook') 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 -- cgit v1.2.3