Fix wrong way of adding Error information in shutil.copytree.

This commit is contained in:
Georg Brandl 2012-08-25 10:11:57 +02:00
parent c63be46b23
commit 3196529f3c

View file

@ -203,7 +203,7 @@ def copytree(src, dst, symlinks=False, ignore=None):
# 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