Skip to content
Snippets Groups Projects
Commit 70c69739 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Notifier.notify accepts (and ignores) any arguments, so it can be used

as an arbitrary callback function.
parent f36b4168
No related branches found
No related tags found
No related merge requests found
......@@ -85,8 +85,10 @@ class Notifier(object):
type(self).__name__, name, cbName))
def notify(self):
"""Notify all registered listeners of this ``Notifier``. """
def notify(self, *args, **kwargs):
"""Notify all registered listeners of this ``Notifier``.
All arguments passed to this method are ignored.
"""
listeners = list(self.__listeners.items())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment