From c2fce5de3854fa5a4d5eb3628e6b1f0520e9d3c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Sun, 1 Nov 2020 09:02:09 +0100 Subject: [PATCH] Gmail.py removed parent class in super calls In Python 3 we don't need specify the class for these calls, the MRO find it. --- offlineimap/repository/Gmail.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offlineimap/repository/Gmail.py b/offlineimap/repository/Gmail.py index e9737e9..d0b9435 100644 --- a/offlineimap/repository/Gmail.py +++ b/offlineimap/repository/Gmail.py @@ -40,7 +40,7 @@ class GmailRepository(IMAPRepository): We first check the usual IMAP settings, and then fall back to imap.gmail.com if nothing is specified.""" try: - return super(GmailRepository, self).gethost() + return super().gethost() except OfflineImapError: # Nothing was configured, cache and return hardcoded # one. See the parent class (IMAPRepository) for how this @@ -55,7 +55,7 @@ class GmailRepository(IMAPRepository): https://accounts.google.com/o/oauth2/token if nothing is specified.""" - url = super(GmailRepository, self).getoauth2_request_url() + url = super().getoauth2_request_url() if url is None: # Nothing was configured, cache and return hardcoded one. self.setoauth2_request_url("https://accounts.google.com/o/oauth2/token") @@ -69,7 +69,7 @@ class GmailRepository(IMAPRepository): This Gmail implementation first checks for the usual IMAP settings and falls back to 993 if nothing is specified.""" - port = super(GmailRepository, self).getport() + port = super().getport() if port is not None: return port