#NEWLINE# def ApplyCondition( self , response , condition_index ) : #NEWLINE# #INDENT# 'Applies next condition to responses.' #NEWLINE# if ( condition_index >= len ( self . state . sorted_conditions ) ) : #NEWLINE# #INDENT# self . ProcessAction ( response ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# condition_options = self . state . sorted_conditions [ condition_index ] #NEWLINE# ( condition_handler , _ ) = self . condition_handlers [ condition_options . condition_type ] #NEWLINE# condition_handler ( response , response , condition_index )