components/variations/service/generate_ui_string_overrider.py
def _GetResourceListFromString(resources_content):
  """Produces a list of |Resource| objects from a string.

  The input string contains lines of the form "#define NAME INDEX". The returned
  list is sorted primarily by hash, then name, and then index.

  Args:
    resources_content: The input string to process, contains lines of the form
        "#define NAME INDEX".

  Returns:
    A sorted list of |Resource| objects.
  """
  resources = [Resource(HashName(name), name, index) for name, index in
               _GetNameIndexPairsIter(resources_content)]

  # Deduplicate resources. Some name-index pairs appear in both chromium_ and
  # google_chrome_ header files. Unless deduplicated here, collisions will be
  # raised in _CheckForHashCollisions.
  resources = list(set(resources))

  # The default |Resource| order makes |resources| sorted by the hash, then
  # name, then index.
  resources.sort()

  return resources
Produces a list of |Resource| objects from a string.

  The input string contains lines of the form "#define NAME INDEX". The returned
  list is sorted primarily by hash, then name, and then index.

  Args:
    resources_content: The input string to process, contains lines of the form
        "#define NAME INDEX".

  Returns:
    A sorted list of |Resource| objects.
  
Produces a list of |Resource| objects from a string.
The input string contains lines of the form "#define NAME INDEX". The returned
list is sorted primarily by hash, then name, and then index.
Produces a list of |Resource| objects from a string . The input string contains lines of the form " #define NAME INDEX " . The returned list is sorted primarily by hash then name and then index .
def _GetResourceListFromString(resources_content):
  resources = [Resource(HashName(name), name, index) for name, index in
               _GetNameIndexPairsIter(resources_content)]
  resources = list(set(resources))
  resources.sort()
  return resources
def _GetResourceListFromString ( resources_content ) : resources = [ Resource ( HashName ( name ) , name , index ) for name , index in _GetNameIndexPairsIter ( resources_content ) ] resources = list ( set ( resources ) ) resources . sort ( ) return resources
Produces a list of |Resource| objects from a string.
Produces a list of |Resource| objects from a string .
"""Produces a list of |Resource| objects from a string.

  The input string contains lines of the form "#define NAME INDEX". The returned
  list is sorted primarily by hash, then name, and then index.

  Args:
    resources_content: The input string to process, contains lines of the form
        "#define NAME INDEX".

  Returns:
    A sorted list of |Resource| objects.
  """ # Deduplicate resources. Some name-index pairs appear in both chromium_ and # google_chrome_ header files. Unless deduplicated here, collisions will be # raised in _CheckForHashCollisions. # The default |Resource| order makes |resources| sorted by the hash, then # name, then index.
A sorted list of |Resource| objects.
A sorted list of |Resource| objects .
resources_content
The input string to process, contains lines of the form
"#define NAME INDEX".
The input string to process contains lines of the form " #define NAME INDEX " .