summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-10-07 13:18:17 (GMT)
committerGuido van Rossum <guido@python.org>1998-10-07 13:18:17 (GMT)
commitd832f9e4253c5ca2a7660725b12697b4619e3716 (patch)
treea47ded92d39a8206e136d8c34984f3ddc3bef920 /Lib/shutil.py
parentbac609a69ec4560ece487f0654429197c7a16b2b (diff)
downloadcpython-d832f9e4253c5ca2a7660725b12697b4619e3716.zip
cpython-d832f9e4253c5ca2a7660725b12697b4619e3716.tar.gz
cpython-d832f9e4253c5ca2a7660725b12697b4619e3716.tar.bz2
Fix append() calls with more than 1 argument.
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))