#NEWLINE# def _remove_switch_handlers( self ) : #NEWLINE# #INDENT# if ( not self . switch_handlers_active ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# for switch in switch . config [ 'switch' ] : #NEWLINE# #INDENT# self . machine . switch_controller . remove_switch_handler ( switch . name , self . hit , 1 ) #NEWLINE# #UNINDENT# for switch in self . config [ 'switch_sequence' ] : #NEWLINE# #INDENT# self . machine . switch_controller . remove_switch_handler ( switch . name , self . _sequence_switch_hit , 1 ) #NEWLINE# #UNINDENT# for switch in self . config [ 'cancel_switch' ] : #NEWLINE# #INDENT# self . machine . switch_controller . remove_switch_handler ( switch . name , self . _cancel_switch_hit , 1 ) #NEWLINE# #UNINDENT# for switch in self . config [ 'delay_switch' ] . keys ( ) : #NEWLINE# #INDENT# self . machine . switch_controller . remove_switch_handler ( switch . name , self . _delay_switch_hit , 1 ) #NEWLINE# #UNINDENT# self . switch_handlers_active = False