def deregister_all(self, *events):
if events:<EOL><INDENT>for event in events:<EOL><INDENT>self._handler_dict[event] = []<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self._handler_dict = {}<EOL><DEDENT>
Deregisters all handler functions, or those registered against the given event(s).