def gather_target_names()

in admin/refresh_spdx/add_licenses.py [0:0]


def gather_target_names(text):
  name_match = re.compile(r'^ *name *= *"([^"]*)"')
  ret = []
  for line in text.split('\n'):
    m = name_match.match(line)
    if m:
      ret.append(m.group(1))
  return ret