From cd5c6fe719752513e97d51ab059fd3e7e972db57 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 26 Jul 2014 01:09:56 +0400 Subject: [PATCH] Make sure arguments in `args` are only strings Required for python-2.6 Fixes #933 --- powerline/segment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/segment.py b/powerline/segment.py index cf495c87..d0ab2746 100644 --- a/powerline/segment.py +++ b/powerline/segment.py @@ -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)