From e12a70212806eef40d0056e9bbd111ecbff145a3 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:13:17 +0100 Subject: [PATCH] GmailMaildir.py Removed __init__ First, in Python 3 we don't need call the super().__init__ explicitly, because Python does it. So, we can remove the line: super().__init__(reposname, account) If we leafe the method __init__ empty, the parent __init__ method is not called, we need remove the __init__ and then Python uses the parent __init__ method. --- offlineimap/repository/GmailMaildir.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/offlineimap/repository/GmailMaildir.py b/offlineimap/repository/GmailMaildir.py index a820696..8522e21 100644 --- a/offlineimap/repository/GmailMaildir.py +++ b/offlineimap/repository/GmailMaildir.py @@ -26,10 +26,5 @@ class GmailMaildirRepository(MaildirRepository): """ GMail Maildir Repository Class """ - def __init__(self, reposname, account): - """Initialize a MaildirRepository object. Takes a path name - to the directory holding all the Maildir directories.""" - super().__init__(reposname, account) - def getfoldertype(self): return GmailMaildirFolder