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.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-11-01 09:13:17 +01:00
parent 5f338454ee
commit e12a702128

View File

@ -26,10 +26,5 @@ class GmailMaildirRepository(MaildirRepository):
""" """
GMail Maildir Repository Class 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): def getfoldertype(self):
return GmailMaildirFolder return GmailMaildirFolder