testing/libfuzzer/gen_fuzzer_owners.py
def GetSourcesFromDeps(deps_list, build_dir):
  """Return list of sources from parsing deps."""
  if not deps_list:
    return None

  full_deps_list = TraverseGroups(deps_list, build_dir)
  all_sources = []
  for deps in full_deps_list:
    output = subprocess.check_output(
        [GNPath(), 'desc', '--fail-on-unused-args', build_dir, deps, 'sources'])
    for source in bytes(output).decode('utf8').splitlines():
      if source.startswith('//'):
        source = source[2:]
      all_sources.append(source)

  return all_sources
Return list of sources from parsing deps.
Return list of sources from parsing deps.
Return list of sources from parsing deps .
def GetSourcesFromDeps(deps_list, build_dir):
  if not deps_list:
    return None
  full_deps_list = TraverseGroups(deps_list, build_dir)
  all_sources = []
  for deps in full_deps_list:
    output = subprocess.check_output(
        [GNPath(), 'desc', '--fail-on-unused-args', build_dir, deps, 'sources'])
    for source in bytes(output).decode('utf8').splitlines():
      if source.startswith('//'):
        source = source[2:]
      all_sources.append(source)
  return all_sources
def GetSourcesFromDeps ( deps_list , build_dir ) : if not deps_list : return None full_deps_list = TraverseGroups ( deps_list , build_dir ) all_sources = [ ] for deps in full_deps_list : output = subprocess . check_output ( [ GNPath ( ) , 'desc' , '--fail-on-unused-args' , build_dir , deps , 'sources' ] ) for source in bytes ( output ) . decode ( 'utf8' ) . splitlines ( ) : if source . startswith ( '//' ) : source = source [ 2 : ] all_sources . append ( source ) return all_sources
Return list of sources from parsing deps.
Return list of sources from parsing deps .
"""Return list of sources from parsing deps."""
deps_list
build_dir