Make sure arguments in `args` are only strings

Required for python-2.6

Fixes #933
This commit is contained in:
ZyX 2014-07-26 01:09:56 +04:00
parent 5f7fbda29a
commit cd5c6fe719
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ def gen_segment_getter(pl, ext, common_config, theme_configs, default_module=Non
if hasattr(_contents_func, 'powerline_requires_filesystem_watcher'):
create_watcher = lambda: create_file_watcher(pl, common_config['watcher'])
args['create_watcher'] = create_watcher
args[str('create_watcher')] = create_watcher
if hasattr(_contents_func, 'powerline_requires_segment_info'):
contents_func = lambda pl, segment_info: _contents_func(pl=pl, segment_info=segment_info, **args)