third_party/android_platform/development/scripts/symbol.py
def GetCandidates(dirs, filepart, candidate_fun):
  """Returns a list of candidate filenames, sorted by modification time.

  Args:
    dirs: a list of the directory part of the pathname.
    filepart: the file part of the pathname.
    candidate_fun: a function to apply to each candidate, returns a list.

  Returns:
    A list of candidate files ordered by modification time, newest first.
  """
  candidates = _PathListJoin(dirs, [filepart])
  logging.debug('GetCandidates: prefiltered candidates = %s' % candidates)
  candidates = list(
      itertools.chain.from_iterable(map(candidate_fun, candidates)))
  candidates.sort(key=os.path.getmtime, reverse=True)
  return candidates
Returns a list of candidate filenames, sorted by modification time.

  Args:
    dirs: a list of the directory part of the pathname.
    filepart: the file part of the pathname.
    candidate_fun: a function to apply to each candidate, returns a list.

  Returns:
    A list of candidate files ordered by modification time, newest first.
  
Returns a list of candidate filenames, sorted by modification time.
Returns a list of candidate filenames sorted by modification time .
def GetCandidates(dirs, filepart, candidate_fun):
  candidates = _PathListJoin(dirs, [filepart])
  logging.debug('GetCandidates: prefiltered candidates = %s' % candidates)
  candidates = list(
      itertools.chain.from_iterable(map(candidate_fun, candidates)))
  candidates.sort(key=os.path.getmtime, reverse=True)
  return candidates
def GetCandidates ( dirs , filepart , candidate_fun ) : candidates = _PathListJoin ( dirs , [ filepart ] ) logging . debug ( 'GetCandidates: prefiltered candidates = %s' % candidates ) candidates = list ( itertools . chain . from_iterable ( map ( candidate_fun , candidates ) ) ) candidates . sort ( key = os . path . getmtime , reverse = True ) return candidates
Returns a list of candidate filenames, sorted by modification time.
Returns a list of candidate filenames sorted by modification time .
"""Returns a list of candidate filenames, sorted by modification time.

  Args:
    dirs: a list of the directory part of the pathname.
    filepart: the file part of the pathname.
    candidate_fun: a function to apply to each candidate, returns a list.

  Returns:
    A list of candidate files ordered by modification time, newest first.
  """
A list of candidate files ordered by modification time, newest first.
A list of candidate files ordered by modification time newest first .
dirs
a list of the directory part of the pathname.
a list of the directory part of the pathname .
filepart
the file part of the pathname.
the file part of the pathname .
candidate_fun
a function to apply to each candidate, returns a list.
a function to apply to each candidate returns a list .