#NEWLINE# def _in_any( reason , err_haystack ) : #NEWLINE# #INDENT# 'Checks if any elements of the haystack are in the given reason.' #NEWLINE# for err in err_haystack : #NEWLINE# #INDENT# if ( reason . find ( six . text_type ( err_haystack ) ) != ( - 1 ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False