tools/resources/find_unused_resources.py
def FindFilesWithContents(string_a, string_b):
  """Returns list of paths of files that contain |string_a| or |string_b|.

  Uses --name-only to print the file paths. The default behavior of git grep
  is to OR together multiple patterns.

  Args:
    string_a: A string to search for (not a regular expression).
    string_b: As above.

  Returns:
    A list of file paths as strings.
  """
  matching_files = subprocess.check_output([
      'git', 'grep', '--name-only', '--fixed-strings', '-e', string_a,
      '-e', string_b])
  files_list = matching_files.split('\n')
  # The output ends in a newline, so slice that off.
  files_list = files_list[:-1]
  return files_list
Returns list of paths of files that contain |string_a| or |string_b|.

  Uses --name-only to print the file paths. The default behavior of git grep
  is to OR together multiple patterns.

  Args:
    string_a: A string to search for (not a regular expression).
    string_b: As above.

  Returns:
    A list of file paths as strings.
  
Returns list of paths of files that contain |string_a| or |string_b|.
Uses --name-only to print the file paths. The default behavior of git grep
is to OR together multiple patterns.
Returns list of paths of files that contain |string_a| or |string_b| . Uses -- name - only to print the file paths . The default behavior of git grep is to OR together multiple patterns .
def FindFilesWithContents(string_a, string_b):
  matching_files = subprocess.check_output([
      'git', 'grep', '--name-only', '--fixed-strings', '-e', string_a,
      '-e', string_b])
  files_list = matching_files.split('\n')
  files_list = files_list[:-1]
  return files_list
def FindFilesWithContents ( string_a , string_b ) : matching_files = subprocess . check_output ( [ 'git' , 'grep' , '--name-only' , '--fixed-strings' , '-e' , string_a , '-e' , string_b ] ) files_list = matching_files . split ( '\n' ) files_list = files_list [ : - 1 ] return files_list
Returns list of paths of files that contain |string_a| or |string_b|.
Returns list of paths of files that contain |string_a| or |string_b| .
"""Returns list of paths of files that contain |string_a| or |string_b|.

  Uses --name-only to print the file paths. The default behavior of git grep
  is to OR together multiple patterns.

  Args:
    string_a: A string to search for (not a regular expression).
    string_b: As above.

  Returns:
    A list of file paths as strings.
  """ # The output ends in a newline, so slice that off.
A list of file paths as strings.
A list of file paths as strings .
string_a
A string to search for (not a regular expression).
A string to search for ( not a regular expression ) .
string_b
None