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.
This commit is contained in:
ZyX 2015-01-06 03:24:44 +03:00
parent 733b09f78c
commit de328b25ed
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ def _override_from(config, override_varname):
return config return config
class VimVarHandler(logging.Handler): class VimVarHandler(logging.Handler, object):
'''Vim-specific handler which emits messages to Vim global variables '''Vim-specific handler which emits messages to Vim global variables
Used variable: ``g:powerline_log_messages``. Used variable: ``g:powerline_log_messages``.