diff options
author | Georg Brandl <georg@python.org> | 2006-04-28 16:54:25 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-04-28 16:54:25 (GMT) |
commit | 7a3fd89994b8f79878a2b2d861ed1862b24c5bfe (patch) | |
tree | 3fcbb3a8cb4a84da28a7d9e522976351c15a639f | |
parent | d77167286f2b3fa9a1414a727c9783cccfcd2de2 (diff) | |
download | cpython-7a3fd89994b8f79878a2b2d861ed1862b24c5bfe.zip cpython-7a3fd89994b8f79878a2b2d861ed1862b24c5bfe.tar.gz cpython-7a3fd89994b8f79878a2b2d861ed1862b24c5bfe.tar.bz2 |
Bug #1472949: stringify IOErrors in shutil.copytree when appending
them to the Error errors list.
-rw-r--r-- | Lib/shutil.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py index 2fca61c..c50184c 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: |