def _do_report()

in tools/checker_demo.py [0:0]


def _do_report(out, licenses):
  """Produce a report showing the set of licenses being used.

  Args:
    out: file object to write to
    licenses: list of LicenseInfo objects

  Returns:
    0 for no restricted licenses.
  """
  for lic in licenses:  # using strange name lic because license is built-in
    rule = lic['rule']
    for kind in lic['license_kinds']:
      out.write('= %s\n  kind: %s\n' % (rule, kind['target']))
      out.write('  conditions: %s\n' % kind['conditions'])