diff options
author | mbarkhau <mbarkhau@gmail.com> | 2020-01-24 14:51:16 (GMT) |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2020-01-24 14:51:16 (GMT) |
commit | 88704334e5262c6cd395a0809d4ef810f33f3ca5 (patch) | |
tree | 6ddbbf3be7e755ccaf6dab8d5dd14c533acda7a6 /Lib/shutil.py | |
parent | 66b00a9d3aacf6ed49412f48743e4913104a2bb3 (diff) | |
download | cpython-88704334e5262c6cd395a0809d4ef810f33f3ca5.zip cpython-88704334e5262c6cd395a0809d4ef810f33f3ca5.tar.gz cpython-88704334e5262c6cd395a0809d4ef810f33f3ca5.tar.bz2 |
bpo-39390 shutil: fix argument types for ignore callback (GH-18122)
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 8f609b3..9a83a32 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -442,7 +442,7 @@ def ignore_patterns(*patterns): def _copytree(entries, src, dst, symlinks, ignore, copy_function, ignore_dangling_symlinks, dirs_exist_ok=False): if ignore is not None: - ignored_names = ignore(src, {x.name for x in entries}) + ignored_names = ignore(os.fspath(src), [x.name for x in entries]) else: ignored_names = set() |