parameters: (path, cmdtuples)
docstring: Helper for remove_tree().
docstring_summary: Helper for remove_tree().
docstring_tokens: Helper for remove_tree () .
function: def _build_cmdtuple(path, cmdtuples):
      """Helper for remove_tree()."""
      for f in os.listdir(path):
          real_f = os.path.join(path,f)
          if os.path.isdir(real_f) and not os.path.islink(real_f):
              _build_cmdtuple(real_f, cmdtuples)
          else:
              cmdtuples.append((os.remove, real_f))
      cmdtuples.append((os.rmdir, path))
function_tokens: def _build_cmdtuple ( path , cmdtuples ) : for f in os . listdir ( path ) : real_f = os . path . join ( path , f ) if os . path . isdir ( real_f ) and not os . path . islink ( real_f ) : _build_cmdtuple ( real_f , cmdtuples ) else : cmdtuples . append ( ( os . remove , real_f ) ) cmdtuples . append ( ( os . rmdir , path ) )