mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Bug #1472949: stringify IOErrors in shutil.copytree when appending
them to the Error errors list.
This commit is contained in:
parent
d77167286f
commit
7a3fd89994
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ def copytree(src, dst, symlinks=False):
|
||||||
copy2(srcname, dstname)
|
copy2(srcname, dstname)
|
||||||
# XXX What about devices, sockets etc.?
|
# XXX What about devices, sockets etc.?
|
||||||
except (IOError, os.error), why:
|
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
|
# catch the Error from the recursive copytree so that we can
|
||||||
# continue with other files
|
# continue with other files
|
||||||
except Error, err:
|
except Error, err:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue