From: Guido van Rossum Date: Wed, 7 Oct 1998 13:18:17 +0000 (+0000) Subject: Fix append() calls with more than 1 argument. X-Git-Tag: v1.5.2a2~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d832f9e4253c5ca2a7660725b12697b4619e3716;p=python Fix append() calls with more than 1 argument. --- diff --git a/Lib/shutil.py b/Lib/shutil.py index 752c1ec57c..a248c6e90a 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))