core: replace ancient YOLO loop in fire().

This commit is contained in:
David Wilson 2019-01-21 19:38:52 +00:00
parent f5d9af80ef
commit e99b8a8de7
1 changed files with 2 additions and 1 deletions

View File

@ -329,7 +329,8 @@ def fire(obj, name, *args, **kwargs):
registered for the named signal on `obj`.
"""
signals = vars(obj).get('_signals', {})
return [func(*args, **kwargs) for func in signals.get(name, ())]
for func in signals.get(name, ()):
func(*args, **kwargs)
def takes_econtext(func):