parameters: (root, prune_dir=None, exclude_file=None)
docstring: Yield (dirname, files) for each directory in the tree.
  
      The list of files is actually a list of (basename, filename).
  
      This is an alternative to os.walk() with filtering.
docstring_summary: Yield (dirname, files) for each directory in the tree.
docstring_tokens: Yield ( dirname files ) for each directory in the tree .
function: def iter_tree(root, prune_dir=None, exclude_file=None):
      """Yield (dirname, files) for each directory in the tree.
  
      The list of files is actually a list of (basename, filename).
  
      This is an alternative to os.walk() with filtering."""
      pending = [root]
      while pending:
          dirname = pending.pop(0)
          files = []
          for _, b, f in _iter_files(dirname, pending, prune_dir, exclude_file):
              files.append((b, f))
          yield dirname, files
function_tokens: def iter_tree ( root , prune_dir = None , exclude_file = None ) : pending = [ root ] while pending : dirname = pending . pop ( 0 ) files = [ ] for _ , b , f in _iter_files ( dirname , pending , prune_dir , exclude_file ) : files . append ( ( b , f ) ) yield dirname , files