]> granicus.if.org Git - python/commitdiff
Fix wrong way of adding Error information in shutil.copytree.
authorGeorg Brandl <georg@python.org>
Sat, 25 Aug 2012 08:11:57 +0000 (10:11 +0200)
committerGeorg Brandl <georg@python.org>
Sat, 25 Aug 2012 08:11:57 +0000 (10:11 +0200)
Lib/shutil.py

index dca4d2efebc31d5196740e92b1cb595f6253e40f..420802fafdff81fcd78b886b7474dd5322b444ae 100644 (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