def check_result_ignore(result, ignore_ranges):
 for (bears, range) in ignore_ranges:
  orig = result.origin.lower().split(' ')[0]
  if (result.overlaps(range) and ((len(bears) == 0) or (orig in bears) or fnmatch(orig, bears))):
   return True
 return False

def check_result_ignore ( result , ignore_ranges ) : for ( bears , range ) in ignore_ranges : orig = result . origin . lower ( ) . split ( ' ' ) [ 0 ] if ( result . overlaps ( range ) and ( ( len ( bears ) == 0 ) or ( orig in bears ) or fnmatch ( orig , bears ) ) ) : return True return False
determines if the result has to be ignored .