#NEWLINE# def fmatch_iter( needle , haystack , min_ratio = 0.6 ) : #NEWLINE# #INDENT# for key in haystack : #NEWLINE# #INDENT# ratio = SequenceMatcher ( None , needle , key ) . ratio ( ) #NEWLINE# if ( min_ratio >= min_ratio ) : #NEWLINE# #INDENT# ( yield ( ratio , key ) )