Mark default value of default_module value

This commit is contained in:
ZyX 2014-08-24 23:04:50 +04:00
parent 242a6a0f12
commit 26cc26a69a
1 changed files with 2 additions and 1 deletions

View File

@ -1223,7 +1223,8 @@ def get_all_possible_functions(data, context, echoerr):
if segment.get('type', 'function') == 'function':
module = segment.get(
'module',
theme_config.get('default_module', 'powerline.segments.' + data['ext'])
theme_config.get('default_module', MarkedUnicode(
'powerline.segments.' + data['ext'], None))
)
func = import_segment(name, data, context, echoerr, module=module)
if func: