#NEWLINE# def entity_leave_env( self , entity , exit_action ) : #NEWLINE# #INDENT# super ( ) . entity_leave_env ( entity , exit_action ) #NEWLINE# if ( self . _current_action and ( entity . _action_target == entity ) ) : #NEWLINE# #INDENT# self . _cancel_actions ( )