Commit f6e2f956 authored by Tarek Ziadé's avatar Tarek Ziadé

removing the last remaning apply() calls

parent 55b356b1
......@@ -233,7 +233,7 @@ def make_archive(base_name, format, root_dir=None, base_dir=None, verbose=0,
kwargs['owner'] = owner
kwargs['group'] = group
filename = apply(func, (base_name, base_dir), kwargs)
filename = func(base_name, base_dir, **kwargs)
if root_dir is not None:
log.debug("changing back to '%s'", save_cwd)
os.chdir(save_cwd)
......
......@@ -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:
......
......@@ -61,7 +61,7 @@ class FileList:
sortable_files.sort()
self.files = []
for sort_tuple in sortable_files:
self.files.append(apply(os.path.join, sort_tuple))
self.files.append(os.path.join(*sort_tuple))
# -- Other miscellaneous utility methods ---------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment