mirror of
https://github.com/beetbox/beets.git
synced 2025-12-12 11:36:27 +01:00
plugins: make the signature of notify_info_yielded clearer
This commit is contained in:
parent
91d1aa9763
commit
2b468c1872
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue