(content, ignore_fun)
return False
Print failure state and return if ignore_fun matches content.
Print failure state and return if ignore_fun matches content.
Print failure state and return if ignore_fun matches content .
def content_bailout(content, ignore_fun):
  """Print failure state and return if ignore_fun matches content."""
  bug = (ignore_fun(content) or '').strip()
  if bug:
    print FAILURE_HEADER_TEMPLATE % dict(
        configs='', source_key='', suppression=bug)
    return True
  return False
def content_bailout ( content , ignore_fun ) : bug = ( ignore_fun ( content ) or '' ) . strip ( ) if bug : print FAILURE_HEADER_TEMPLATE % dict ( configs = '' , source_key = '' , suppression = bug ) return True return False