[Python-checkins] r45785 - python/trunk/Lib/shutil.py

georg.brandl python-checkins at python.org
Fri Apr 28 18:54:25 CEST 2006


Author: georg.brandl
Date: Fri Apr 28 18:54:25 2006
New Revision: 45785

Modified:
   python/trunk/Lib/shutil.py
Log:
Bug #1472949: stringify IOErrors in shutil.copytree when appending
them to the Error errors list.



Modified: python/trunk/Lib/shutil.py
==============================================================================
--- python/trunk/Lib/shutil.py	(original)
+++ python/trunk/Lib/shutil.py	Fri Apr 28 18:54:25 2006
@@ -122,7 +122,7 @@
                 copy2(srcname, dstname)
             # XXX What about devices, sockets etc.?
         except (IOError, os.error), why:
-            errors.append((srcname, dstname, why))
+            errors.append((srcname, dstname, str(why)))
         # catch the Error from the recursive copytree so that we can
         # continue with other files
         except Error, err:


More information about the Python-checkins mailing list