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'}
|
'thread': 'Threading debugging'}
|
||||||
|
|
||||||
globalui = None
|
globalui = None
|
||||||
|
|
||||||
|
|
||||||
def setglobalui(newui):
|
def setglobalui(newui):
|
||||||
"""Set the global ui object to be used for logging."""
|
"""Set the global ui object to be used for logging."""
|
||||||
|
|
||||||
global globalui
|
global globalui
|
||||||
globalui = newui
|
globalui = newui
|
||||||
|
|
||||||
|
|
||||||
def getglobalui():
|
def getglobalui():
|
||||||
"""Return the current ui object."""
|
"""Return the current ui object."""
|
||||||
|
|
||||||
@ -473,9 +476,11 @@ class UIBase(object):
|
|||||||
folders = []
|
folders = []
|
||||||
for name, visiblename, sync_this in foldernames:
|
for name, visiblename, sync_this in foldernames:
|
||||||
syncstr = "" if sync_this else " (disabled)"
|
syncstr = "" if sync_this else " (disabled)"
|
||||||
if name == visiblename: folders.append("%s%s" % (name,
|
if name == visiblename:
|
||||||
|
folders.append("%s%s" % (name,
|
||||||
syncstr))
|
syncstr))
|
||||||
else: folders.append("%s -> %s%s" % (name,
|
else:
|
||||||
|
folders.append("%s -> %s%s" % (name,
|
||||||
visiblename, syncstr))
|
visiblename, syncstr))
|
||||||
self._msg("Folderlist:\n %s\n" % "\n ".join(folders))
|
self._msg("Folderlist:\n %s\n" % "\n ".join(folders))
|
||||||
finally:
|
finally:
|
||||||
|
Loading…
Reference in New Issue
Block a user