Added missing docstring
This commit is contained in:
parent
9008a2fb7f
commit
1a6030c737
1 changed files with 4 additions and 0 deletions
|
|
@ -82,6 +82,10 @@ class EventManager(object):
|
|||
self._logger.debug("Subscribed listener %r for event %s" % (callback, event))
|
||||
|
||||
def unsubscribe (self, event, callback):
|
||||
"""
|
||||
Unsubscribe a listener from an event -- pass in the event name (as string) and the callback object
|
||||
"""
|
||||
|
||||
if not event in self._registeredListeners:
|
||||
# no callback registered for callback, just return
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue