[PATCH] Fix Machine ui to not error out on ui.warn()
Sebastian Spaeth
Sebastian at SSpaeth.de
Wed Dec 1 12:12:09 GMT 2010
All other uis (especially BaseUI) define as warn(self, msg, minor = 0)
just MachineUI required minor without a default. This leads the
Machine UI to error out with an exception if we pass it
ui.warn("string") which is the common thing in our code base. This
patch is therefore small but critical in fixing this UI.
Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
offlineimap/ui/Machine.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/offlineimap/ui/Machine.py b/offlineimap/ui/Machine.py
index 0a07e3e..03c3312 100644
--- a/offlineimap/ui/Machine.py
+++ b/offlineimap/ui/Machine.py
@@ -56,7 +56,7 @@ class MachineUI(UIBase):
def _display(s, msg):
s._printData('_display', msg)
- def warn(s, msg, minor):
+ def warn(s, msg, minor = 0):
s._printData('warn', '%s\n%d' % (msg, int(minor)))
def registerthread(s, account):
--
1.7.1
More information about the OfflineIMAP-project
mailing list