From d832f9e4253c5ca2a7660725b12697b4619e3716 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 7 Oct 1998 13:18:17 +0000 Subject: [PATCH] Fix append() calls with more than 1 argument. --- Lib/shutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/shutil.py b/Lib/shutil.py index 752c1ec57cc..a248c6e90a7 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))