/offlineimap/head: changeset 159

NotImplementedException -> NotImplementedError (oops)
This commit is contained in:
jgoerzen 2002-07-22 07:02:24 +01:00
parent 39060259d0
commit fac88fbe6b

View File

@ -28,7 +28,7 @@ class UIBase:
################################################## UTILS ################################################## UTILS
def _msg(s, msg): def _msg(s, msg):
"""Generic tool called when no other works.""" """Generic tool called when no other works."""
raise NotImplementedException raise NotImplementedError
def warn(s, msg): def warn(s, msg):
s._msg("WARNING: " + msg) s._msg("WARNING: " + msg)
@ -47,7 +47,7 @@ class UIBase:
################################################## INPUT ################################################## INPUT
def getpass(s, accountname, config): def getpass(s, accountname, config):
raise NotImplementedException raise NotImplementedError
def folderlist(s, list): def folderlist(s, list):
return ', '.join(["%s[%s]" % (s.getnicename(x), x.getname()) for x in list]) return ', '.join(["%s[%s]" % (s.getnicename(x), x.getname()) for x in list])