Commit 3196529f authored by Georg Brandl's avatar Georg Brandl

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

parent c63be46b
...@@ -203,7 +203,7 @@ def copytree(src, dst, symlinks=False, ignore=None): ...@@ -203,7 +203,7 @@ def copytree(src, dst, symlinks=False, ignore=None):
# Copying file access times may fail on Windows # Copying file access times may fail on Windows
pass pass
else: else:
errors.extend((src, dst, str(why))) errors.append((src, dst, str(why)))
if errors: if errors:
raise Error, errors raise Error, errors
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment