]> 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 2d7a506b2ea2bedce111f03bce39436146094257..ef29ae2303c25d8a67bb7910fc21ac7b4c68d235 100644 (file)
@@ -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)