From c8076dfa9dfafbb5455c127719e3ac5b325986b1 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 25 Aug 2012 10:11:57 +0200 Subject: [PATCH] Fix wrong way of adding Error information in shutil.copytree. --- Lib/shutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/shutil.py b/Lib/shutil.py index 2d7a506b2e..ef29ae2303 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -236,7 +236,7 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2, # Copying file access times may fail on Windows pass else: - errors.extend((src, dst, str(why))) + errors.append((src, dst, str(why))) if errors: raise Error(errors) -- 2.50.0