diff --git a/Changelog.draft.rst b/Changelog.draft.rst index 5fdacac..c2b7dbc 100644 --- a/Changelog.draft.rst +++ b/Changelog.draft.rst @@ -48,3 +48,5 @@ Changes Bug Fixes --------- + +* Improve compatability of the curses UI with python 2.6 diff --git a/offlineimap/ui/Curses.py b/offlineimap/ui/Curses.py index 365be60..7463a6a 100644 --- a/offlineimap/ui/Curses.py +++ b/offlineimap/ui/Curses.py @@ -281,7 +281,7 @@ class CursesLogHandler(logging.StreamHandler): """self.ui has been set to the UI class before anything is invoked""" def emit(self, record): - log_str = super(CursesLogHandler, self).format(record) + log_str = logging.StreamHandler.format(self, record) color = self.ui.gettf().curses_color # We must acquire both locks. Otherwise, deadlock can result. # This can happen if one thread calls _msg (locking curses, then