diff --git a/econtext/core.py b/econtext/core.py index dbd35b50..c91cb5a5 100644 --- a/econtext/core.py +++ b/econtext/core.py @@ -96,9 +96,9 @@ def listen(obj, name, func): signals.setdefault(name, []).append(func) -def fire(obj, name, **kwargs): +def fire(obj, name, *args, **kwargs): signals = vars(obj).get('_signals', {}) - return [func(**kwargs) for func in signals.get(name, ())] + return [func(*args, **kwargs) for func in signals.get(name, ())] def set_cloexec(fd):