TTYUI: Fix python 2.6 compatibility

We were using super() on a class derived from logging.Formatter() which
worked fine in python 2.7. Apparently python 2.6 uses old-style classes
for this, so the TTYUI broke and crashed OfflineImap. This was
introduced in OLI 6.5.0, I think.

Fix it by calling logging.Formatter.... directly, rather than the
elegant super() (which I happen to like a lot more than is appropriate
in the python world).

Reported by Nik Reiman as github issue 23, should fix that issue.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2012-01-18 00:39:04 +01:00
parent f7866a880a
commit 3cd3edefca
2 changed files with 6 additions and 2 deletions

View File

@ -18,3 +18,5 @@ Changes
Bug Fixes
---------
* Fix python2.6 compatibility with the TTYUI backend (crash)