def deregister_hook(self, event, hook):
    'Deregister a previously registered hook.\n        Returns True if the hook existed, False if not.\n        '
    try:
        self.hooks[event].remove(hook)
        return True
    except ValueError:
        return False
Deregister a previously registered hook.
Returns True if the hook existed, False if not.
def deregister_hook(self, event, hook):
    'Deregister a previously registered hook.\n        Returns True if the hook existed, False if not.\n        '
    try:
        self.hooks[event].remove(hook)
        return True
    except ValueError:
        return False