mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
Remove apply()
This commit is contained in:
parent
fe55464f39
commit
d91085598f
56 changed files with 179 additions and 285 deletions
|
@ -204,7 +204,7 @@ def remove_tree (directory, verbose=0, dry_run=0):
|
|||
_build_cmdtuple(directory, cmdtuples)
|
||||
for cmd in cmdtuples:
|
||||
try:
|
||||
apply(cmd[0], (cmd[1],))
|
||||
cmd[0](cmd[1])
|
||||
# remove dir from cache if it's already there
|
||||
abspath = os.path.abspath(cmd[1])
|
||||
if _path_created.has_key(abspath):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue