parameters: (gyp, gn, name, dont_care_gyp=None, dont_care_gn=None)
return_statement: return output
docstring: Return a report of any differences between gyp and gn lists, ignoring
    anything in |dont_care_{gyp|gn}| respectively.
docstring_summary: Return a report of any differences between gyp and gn lists, ignoring
    anything in |dont_care_{gyp|gn}| respectively.
docstring_tokens: Return a report of any differences between gyp and gn lists ignoring anything in |dont_care_ { gyp|gn } | respectively .
function: def CompareLists(gyp, gn, name, dont_care_gyp=None, dont_care_gn=None):
    """Return a report of any differences between gyp and gn lists, ignoring
    anything in |dont_care_{gyp|gn}| respectively."""
    global g_total_differences
    if not dont_care_gyp:
      dont_care_gyp = []
    if not dont_care_gn:
      dont_care_gn = []
    output = ''
    if gyp[name] != gn[name]:
      gyp_set = set(gyp[name])
      gn_set = set(gn[name])
      missing_in_gyp = gyp_set - gn_set
      missing_in_gn = gn_set - gyp_set
      missing_in_gyp -= set(dont_care_gyp)
      missing_in_gn -= set(dont_care_gn)
      if missing_in_gyp or missing_in_gn:
        output += '  %s differ:\n' % name
      if missing_in_gyp:
        output += '    In gyp, but not in GN:\n      %s' % '\n      '.join(
            sorted(missing_in_gyp)) + '\n'
        g_total_differences += len(missing_in_gyp)
      if missing_in_gn:
        output += '    In GN, but not in gyp:\n      %s' % '\n      '.join(
            sorted(missing_in_gn)) + '\n\n'
        g_total_differences += len(missing_in_gn)
    return output
function_tokens: def CompareLists ( gyp , gn , name , dont_care_gyp = None , dont_care_gn = None ) : global g_total_differences if not dont_care_gyp : dont_care_gyp = [ ] if not dont_care_gn : dont_care_gn = [ ] output = '' if gyp [ name ] != gn [ name ] : gyp_set = set ( gyp [ name ] ) gn_set = set ( gn [ name ] ) missing_in_gyp = gyp_set - gn_set missing_in_gn = gn_set - gyp_set missing_in_gyp -= set ( dont_care_gyp ) missing_in_gn -= set ( dont_care_gn ) if missing_in_gyp or missing_in_gn : output += '  %s differ:\n' % name if missing_in_gyp : output += '    In gyp, but not in GN:\n      %s' % '\n      ' . join ( sorted ( missing_in_gyp ) ) + '\n' g_total_differences += len ( missing_in_gyp ) if missing_in_gn : output += '    In GN, but not in gyp:\n      %s' % '\n      ' . join ( sorted ( missing_in_gn ) ) + '\n\n' g_total_differences += len ( missing_in_gn ) return output