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:
parent
5f338454ee
commit
e12a702128
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user