#NEWLINE# def get_event_handlers( self , type ) : #NEWLINE# #INDENT# ' Get a list of handlers for the given event type. The order\n        is the order in which events are handled: alphabetically by\n        label.\n        \n        Parameters:\n            type (str): the type of event to get handlers for. Should not\n                include a label.\n        \n        ' #NEWLINE# if ( not type ) : #NEWLINE# #INDENT# raise TypeError ( 'get_event_handlers() missing "type" argument.' ) #NEWLINE# #UNINDENT# ( type , _ , label ) = type . partition ( ':' ) #NEWLINE# if label : #NEWLINE# #INDENT# raise ValueError ( 'The type given to get_event_handlers() should not include a label.' ) #NEWLINE# #UNINDENT# handlers = self . _he_handlers . get ( type , ( ) ) #NEWLINE# return [ h [ 1 ] for h in handlers ]