parameters: (search_glob)
return_statement: return sorted(result)
docstring: Returns all files matching |search_glob|.
docstring_summary: Returns all files matching |search_glob|.
docstring_tokens: Returns all files matching |search_glob| .
function: def get_files(search_glob):
    """ Returns all files matching |search_glob|. """
    recursive_glob = '**' + os.path.sep
    if recursive_glob in search_glob:
      if sys.version_info >= (3, 5):
        result = iglob(search_glob, recursive=True)
      else:
        # Polyfill for recursive glob pattern matching added in Python 3.5.
        result = get_files_recursive(*search_glob.split(recursive_glob))
    else:
      result = iglob(search_glob)
  
    # Sort the result for consistency across platforms.
    return sorted(result)
function_tokens: def get_files ( search_glob ) : recursive_glob = '**' + os . path . sep if recursive_glob in search_glob : if sys . version_info >= ( 3 , 5 ) : result = iglob ( search_glob , recursive = True ) else : # Polyfill for recursive glob pattern matching added in Python 3.5. result = get_files_recursive ( * search_glob . split ( recursive_glob ) ) else : result = iglob ( search_glob ) # Sort the result for consistency across platforms. return sorted ( result )