

def notify(self, *args, **kwargs):
    target = kwargs.pop('target', None)
    if (target is None):
        for (target, listeners) in iteritems(self.listeners):
            for listener in listeners:
                listener(*args, **kwargs)
    else:
        for listener in self.listeners[target]:
            listener(*args, **kwargs)

dataset/ETHPy150Open eleme/archer/archer/event.py Event.notify/original