summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-08-25 08:11:57 (GMT)
committerGeorg Brandl <georg@python.org>2012-08-25 08:11:57 (GMT)
commitc8076dfa9dfafbb5455c127719e3ac5b325986b1 (patch)
tree8e2bbeac626ba7a23439c99058b19fb509e5307a /Lib/shutil.py
parent6f64796c2269a49581b3780bb31c37dee4912d4a (diff)
downloadcpython-c8076dfa9dfafbb5455c127719e3ac5b325986b1.zip
cpython-c8076dfa9dfafbb5455c127719e3ac5b325986b1.tar.gz
cpython-c8076dfa9dfafbb5455c127719e3ac5b325986b1.tar.bz2
Fix wrong way of adding Error information in shutil.copytree.
Diffstat (limited to 'Lib/shutil.py')
-rw-r--r--Lib/shutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 2d7a506..ef29ae2 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)