mirror of
https://github.com/python/cpython.git
synced 2025-09-16 05:36:29 +00:00
removing the last remaning apply() calls
This commit is contained in:
parent
1b48671ef1
commit
f638486cf0
3 changed files with 3 additions and 3 deletions
|
@ -190,7 +190,7 @@ def remove_tree(directory, verbose=1, 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 abspath in _path_created:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue