From 8195d1410f94de4956047f8dc004c0acc68ee386 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Thu, 27 Oct 2011 16:58:44 +0200 Subject: [PATCH] Prettify Blinkenlights.sleep() Prettify the function. Signed-off-by: Sebastian Spaeth --- offlineimap/ui/Curses.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/offlineimap/ui/Curses.py b/offlineimap/ui/Curses.py index 3dc32f5..46b5157 100644 --- a/offlineimap/ui/Curses.py +++ b/offlineimap/ui/Curses.py @@ -506,11 +506,11 @@ class Blinkenlights(UIBase, CursesUtil): # Trying to end sleep somewhere. self.getaccountframe(self.hotkeys[index]).syncnow() - def sleep(s, sleepsecs, account): - s.gettf().setcolor('red') - s._msg("Next sync in %d:%02d" % (sleepsecs / 60, sleepsecs % 60)) - s.getaccountframe().startsleep(sleepsecs) - return UIBase.sleep(s, sleepsecs, account) + def sleep(self, sleepsecs, account): + self.gettf().setcolor('red') + self.info("Next sync in %d:%02d" % (sleepsecs / 60, sleepsecs % 60)) + self.getaccountframe().startsleep(sleepsecs) + return super(Blinkenlights, self).sleep(sleepsecs, account) def sleeping(self, sleepsecs, remainingsecs): if remainingsecs and s.gettf().getcolor() == 'black':