#NEWLINE# def _prefilter_results( self , results , name , value , func ) : #NEWLINE# #INDENT# 'Try to prefilter results.' #NEWLINE# res = [ r for r in results if ( func ( r ) == value ) ] #NEWLINE# if ( res and ( len ( res ) < len ( results ) ) ) : #NEWLINE# #INDENT# self . log . info ( 'prefilter %d of %d results by %s' , ( len ( results ) - len ( res ) ) , len ( results ) , name ) #NEWLINE# results = res #NEWLINE# #UNINDENT# return results