diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-02-26 11:04:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 11:04:41 (GMT) |
commit | c606a9cbd48f69d3f4a09204c781dda9864218b7 (patch) | |
tree | a2847d175dac2288dff7541eeba3ff4b3737a169 /Lib/shutil.py | |
parent | d5a551c2694e32835bcdafc01d611f3227ca36b3 (diff) | |
download | cpython-c606a9cbd48f69d3f4a09204c781dda9864218b7.zip cpython-c606a9cbd48f69d3f4a09204c781dda9864218b7.tar.gz cpython-c606a9cbd48f69d3f4a09204c781dda9864218b7.tar.bz2 |
bpo-35652: shutil.copytree(copy_function=...) erroneously pass DirEntry instead of path str (GH-11997)
Diffstat (limited to 'Lib/shutil.py')
-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 1f98a34..9b50c2a 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -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: |