more style consistency
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
parent
6fc9c36014
commit
41fa3ae4fc
@ -40,6 +40,7 @@ class OfflineImap:
|
||||
oi = OfflineImap()
|
||||
oi.run()
|
||||
"""
|
||||
|
||||
def run(self):
|
||||
"""Parse the commandline and invoke everything"""
|
||||
# next line also sets self.config and self.ui
|
||||
|
@ -357,9 +357,8 @@ class IMAPRepository(BaseRepository):
|
||||
self.ui.error(e, exc_info()[2],
|
||||
'Invalid folderinclude:')
|
||||
continue
|
||||
retval.append(self.getfoldertype()(self.imapserver,
|
||||
foldername,
|
||||
self))
|
||||
retval.append(self.getfoldertype()(
|
||||
self.imapserver, foldername, self))
|
||||
finally:
|
||||
self.imapserver.releaseconnection(imapobj)
|
||||
|
||||
|
@ -94,7 +94,8 @@ class LocalStatusRepository(BaseRepository):
|
||||
self.forgetfolders()
|
||||
|
||||
def getfolder(self, foldername):
|
||||
"""Return the Folder() object for a foldername"""
|
||||
"""Return the Folder() object for a foldername."""
|
||||
|
||||
if foldername in self._folders:
|
||||
return self._folders[foldername]
|
||||
|
||||
|
@ -170,8 +170,8 @@ class MaildirRepository(BaseRepository):
|
||||
self.debug(" skip this entry (not a directory)")
|
||||
# Not a directory -- not a folder.
|
||||
continue
|
||||
# extension can be None.
|
||||
if extension:
|
||||
# extension can be None which fails.
|
||||
foldername = os.path.join(extension, dirname)
|
||||
else:
|
||||
foldername = dirname
|
||||
|
Loading…
Reference in New Issue
Block a user