tools/android/sdk_updater/update_sdk.py
def GetToolsSuffix(tools_lib_path):
  """Get the gn config of package 'tools' suffix.

  Check jar file name of 'common*.jar' in tools/lib, which could be
  'common.jar', common-<version>-dev.jar' or 'common-<version>.jar'.
  If suffix exists, return the suffix.

  Args:
    tools_lib_path: The path of tools/lib.

  Returns:
    The suffix of tools package.
  """
  tools_lib_jars_list = os.listdir(tools_lib_path)
  for file_name in tools_lib_jars_list:
    found = re.match(_COMMON_JAR_SUFFIX_PATTERN, file_name)
    if found:
      return found.group(1)
Get the gn config of package 'tools' suffix.

  Check jar file name of 'common*.jar' in tools/lib, which could be
  'common.jar', common-<version>-dev.jar' or 'common-<version>.jar'.
  If suffix exists, return the suffix.

  Args:
    tools_lib_path: The path of tools/lib.

  Returns:
    The suffix of tools package.
  
Get the gn config of package 'tools' suffix.
Get the gn config of package ' tools ' suffix .
def GetToolsSuffix(tools_lib_path):
  tools_lib_jars_list = os.listdir(tools_lib_path)
  for file_name in tools_lib_jars_list:
    found = re.match(_COMMON_JAR_SUFFIX_PATTERN, file_name)
    if found:
      return found.group(1)
def GetToolsSuffix ( tools_lib_path ) : tools_lib_jars_list = os . listdir ( tools_lib_path ) for file_name in tools_lib_jars_list : found = re . match ( _COMMON_JAR_SUFFIX_PATTERN , file_name ) if found : return found . group ( 1 )
Get the gn config of package 'tools' suffix.
Get the gn config of package ' tools ' suffix .
"""Get the gn config of package 'tools' suffix.

  Check jar file name of 'common*.jar' in tools/lib, which could be
  'common.jar', common-<version>-dev.jar' or 'common-<version>.jar'.
  If suffix exists, return the suffix.

  Args:
    tools_lib_path: The path of tools/lib.

  Returns:
    The suffix of tools package.
  """
The suffix of tools package.
The suffix of tools package .
tools_lib_path
The path of tools/lib.
The path of tools / lib .