summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 752c1ec..a248c6e 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -123,5 +123,5 @@ def _build_cmdtuple(path, cmdtuples):
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)
+ cmdtuples.append((os.remove, real_f))
+ cmdtuples.append((os.rmdir, path))