def parse_list(string, convert_fn):
  """Parse a (possibly empty) colon-separated list of values."""
  string = string.strip()
  if string:
    return [convert_fn(piece) for piece in string.split(':')]
  else:
    return []