def check_ignore_error(ignore_error, stderr):
 if ((not ignore_error) or (not stderr)):
  return False
 if (not isinstance(ignore_error, six.string_types)):
  ignore_error = '|'.join(ignore_error)
 if re.search(ignore_error, stderr):
  return True
 return False

def check_ignore_error ( ignore_error , stderr ) : if ( ( not ignore_error ) or ( not stderr ) ) : return False if ( not isinstance ( ignore_error , six . string_types ) ) : ignore_error = '|' . join ( ignore_error ) if re . search ( ignore_error , stderr ) : return True return False
return true if ignore_error is in stderr .