diff Lib/shutil.py @ 78761:a2bf95458eed 3.2

Fix wrong way of adding Error information in shutil.copytree.
author Georg Brandl <georg@python.org>
date Sat, 25 Aug 2012 10:11:57 +0200
parents ae141eebcf96
children 016087c46600
line wrap: on
line diff
--- a/Lib/shutil.py	Fri Aug 24 20:31:33 2012 +0100
+++ b/Lib/shutil.py	Sat Aug 25 10:11:57 2012 +0200
@@ -236,7 +236,7 @@
             # 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)