Kaydet (Commit) 7a3fd899 authored tarafından Georg Brandl's avatar Georg Brandl

Bug #1472949: stringify IOErrors in shutil.copytree when appending

them to the Error errors list.
üst d7716728
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment