def _ValidateExclusionSetting(setting, settings, error_msg, stderr=sys.stderr):
 unrecognized = True
 m = re.match(_EXCLUDED_SUFFIX_RE, setting)
 if m:
  root_setting = m.group(1)
  unrecognized = (root_setting not in settings)
 if unrecognized:
  print >>stderr, error_msg

def _ValidateExclusionSetting ( setting , settings , error_msg , stderr = sys . stderr ) : unrecognized = True m = re . match ( _EXCLUDED_SUFFIX_RE , setting ) if m : root_setting = m . group ( 1 ) unrecognized = ( root_setting not in settings ) if unrecognized : print >> stderr , error_msg
verify that setting is valid if it is generated from an exclusion list .