[Python-checkins] cpython (2.7): Fix wrong way of adding Error information in shutil.copytree.

georg.brandl python-checkins at python.org
Sat Aug 25 10:14:08 CEST 2012


http://hg.python.org/cpython/rev/fe3d113e139d
changeset:   78763:fe3d113e139d
branch:      2.7
parent:      78755:31a7ff299698
user:        Georg Brandl <georg at python.org>
date:        Sat Aug 25 10:11:57 2012 +0200
summary:
  Fix wrong way of adding Error information in shutil.copytree.

files:
  Lib/shutil.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/shutil.py b/Lib/shutil.py
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -203,7 +203,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
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list