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