plugins: make the signature of notify_info_yielded clearer

This commit is contained in:
nathdwek@laptop 2016-10-30 17:21:08 +01:00
parent 91d1aa9763
commit 2b468c1872

View file

@ -490,11 +490,11 @@ def sanitize_choices(choices, choices_all):
return res
def notify_info_yielded(msg):
def notify_info_yielded(event):
def decorator(generator):
def decorated(*args, **kwargs):
for v in generator(*args, **kwargs):
send(msg, info=v)
send(event, info=v)
yield v
return decorated
return decorator