/offlineimap/head: changeset 274

This commit is contained in:
jgoerzen
2002-10-30 05:26:49 +01:00
parent 4ab770bb3d
commit 3c395c66a9
4 changed files with 24 additions and 9 deletions

View File

@ -44,8 +44,11 @@ class UIBase:
"""Generic tool called when no other works."""
raise NotImplementedError
def warn(s, msg):
s._msg("WARNING: " + msg)
def warn(s, msg, minor = 0):
if minor:
s._msg("warning: " + msg)
else:
s._msg("WARNING: " + msg)
def debug(s, debugtype, msg):
thisthread = threading.currentThread()