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:
parent
733b09f78c
commit
de328b25ed
|
@ -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``.
|
||||||
|
|
Loading…
Reference in New Issue