Reformat offlineimap/ui/UIBase.py
Add some spaces, remove lines,... now format is better (lintian).
This commit is contained in:
parent
6e0647de1a
commit
ee236ec987
@ -34,12 +34,15 @@ debugtypes = {'':'Other offlineimap related sync messages',
|
||||
'thread': 'Threading debugging'}
|
||||
|
||||
globalui = None
|
||||
|
||||
|
||||
def setglobalui(newui):
|
||||
"""Set the global ui object to be used for logging."""
|
||||
|
||||
global globalui
|
||||
globalui = newui
|
||||
|
||||
|
||||
def getglobalui():
|
||||
"""Return the current ui object."""
|
||||
|
||||
@ -473,9 +476,11 @@ class UIBase(object):
|
||||
folders = []
|
||||
for name, visiblename, sync_this in foldernames:
|
||||
syncstr = "" if sync_this else " (disabled)"
|
||||
if name == visiblename: folders.append("%s%s" % (name,
|
||||
if name == visiblename:
|
||||
folders.append("%s%s" % (name,
|
||||
syncstr))
|
||||
else: folders.append("%s -> %s%s" % (name,
|
||||
else:
|
||||
folders.append("%s -> %s%s" % (name,
|
||||
visiblename, syncstr))
|
||||
self._msg("Folderlist:\n %s\n" % "\n ".join(folders))
|
||||
finally:
|
||||
|
Loading…
Reference in New Issue
Block a user