mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 00:04:39 +02:00
parent
654d4690fc
commit
2528a2c571
@ -21,12 +21,6 @@ class WithPath(object):
|
|||||||
def import_function(function_type, name, data, context, echoerr, module):
|
def import_function(function_type, name, data, context, echoerr, module):
|
||||||
havemarks(name, module)
|
havemarks(name, module)
|
||||||
|
|
||||||
if module == 'powerline.segments.common':
|
|
||||||
echoerr(context='Warning while checking segments (key {key})'.format(key=context.key),
|
|
||||||
context_mark=name.mark,
|
|
||||||
problem='module {0} is deprecated'.format(module),
|
|
||||||
problem_mark=module.mark)
|
|
||||||
|
|
||||||
if module == 'powerline.segments.common.players' and name == 'now_playing':
|
if module == 'powerline.segments.common.players' and name == 'now_playing':
|
||||||
echoerr(context='Warning while checking segments (key {key})'.format(key=context.key),
|
echoerr(context='Warning while checking segments (key {key})'.format(key=context.key),
|
||||||
context_mark=name.mark,
|
context_mark=name.mark,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user