Kaydet (Commit) c8076dfa authored tarafından Georg Brandl's avatar Georg Brandl

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

üst 6f64796c
......@@ -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)
......
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