def _FormatHeader(line, end=72, mark="-", color=None):
  """Fill a line up to the end column.

  """
  line = (mark * 4) + " " + line + " "
  line += "-" * (end - len(line))
  line = line.rstrip()
  line = colors.colorize(line, color=color)
  return line
dataset/ETHPy150Open ganeti/ganeti/qa/ganeti-qa.py/_FormatHeader/original