From de328b25edf8632dff01a314a862d2076802e73c Mon Sep 17 00:00:00 2001 From: ZyX Date: Tue, 6 Jan 2015 03:24:44 +0300 Subject: [PATCH] Make VimVarHandler a new style class Python-2.6 emits some strange problem: TypeError: super() argument 1 must be type, not classobj . This means that in Python-2.6 `logging.Handler` is an old style class. Ref http://stackoverflow.com/questions/1713038. --- powerline/vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/vim.py b/powerline/vim.py index ba90c038..d9cf8013 100644 --- a/powerline/vim.py +++ b/powerline/vim.py @@ -24,7 +24,7 @@ def _override_from(config, override_varname): return config -class VimVarHandler(logging.Handler): +class VimVarHandler(logging.Handler, object): '''Vim-specific handler which emits messages to Vim global variables Used variable: ``g:powerline_log_messages``.