more style consistency

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2015-01-13 13:59:52 +01:00
parent 6fc9c36014
commit 41fa3ae4fc
5 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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)

View File

@ -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]

View File

@ -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