From: Georg Brandl Date: Fri, 28 Apr 2006 16:54:25 +0000 (+0000) Subject: Bug #1472949: stringify IOErrors in shutil.copytree when appending X-Git-Tag: v2.5b1~774 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a3fd89994b8f79878a2b2d861ed1862b24c5bfe;p=thirdparty%2FPython%2Fcpython.git Bug #1472949: stringify IOErrors in shutil.copytree when appending them to the Error errors list. --- diff --git a/Lib/shutil.py b/Lib/shutil.py index 2fca61c164d3..c50184c733cf 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -122,7 +122,7 @@ def copytree(src, dst, symlinks=False): 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: