mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
bpo-35652: shutil.copytree(copy_function=...) erroneously pass DirEntry instead of path str (GH-11997)
This commit is contained in:
parent
d5a551c269
commit
c606a9cbd4
3 changed files with 21 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ def _copytree(entries, src, dst, symlinks, ignore, copy_function,
|
|||
dirs_exist_ok=dirs_exist_ok)
|
||||
else:
|
||||
# Will raise a SpecialFileError for unsupported file types
|
||||
copy_function(srcentry, dstname)
|
||||
copy_function(srcobj, dstname)
|
||||
# catch the Error from the recursive copytree so that we can
|
||||
# continue with other files
|
||||
except Error as err:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue