Make too long line in segment.py more readable

This commit is contained in:
ZyX 2014-09-04 19:05:30 +04:00
parent 00d3dfbc19
commit bd719ba134
1 changed files with 5 additions and 1 deletions

View File

@ -258,7 +258,11 @@ def gen_segment_getter(pl, ext, common_config, theme_configs, default_module, ge
highlight_group = segment.get('highlight_group') or name
if segment_type in ('function', 'segment_list'):
args = dict(((str(k), v) for k, v in get_key(True, segment, module, function_name, name, 'args', {}).items()))
args = dict((
(str(k), v)
for k, v in
get_key(True, segment, module, function_name, name, 'args', {}).items()
))
if segment_type == 'segment_list':
# Handle startup and shutdown of _contents_func?