parameters: (output)
return_statement: return colorized
docstring: Colorize errors and warnings from command-line process output.
docstring_summary: Colorize errors and warnings from command-line process output.
docstring_tokens: Colorize errors and warnings from command - line process output .
function: def colorize_process_output(output):
    """Colorize errors and warnings from command-line process output."""
    colorized = ''
    for line in output.splitlines(True):
      (severity, _) = get_message_tag(line)
      color = LOG_COLOR_DEFAULT
      if severity == SEVERITY_ERROR:
        color = LOG_COLOR_RED
      elif severity == SEVERITY_WARN:
        color = LOG_COLOR_YELLOW
      colorized += colorize(line, color)
    return colorized
function_tokens: def colorize_process_output ( output ) : colorized = '' for line in output . splitlines ( True ) : ( severity , _ ) = get_message_tag ( line ) color = LOG_COLOR_DEFAULT if severity == SEVERITY_ERROR : color = LOG_COLOR_RED elif severity == SEVERITY_WARN : color = LOG_COLOR_YELLOW colorized += colorize ( line , color ) return colorized