summaryrefslogtreecommitdiffstats
path: root/Lib/shutil.py
diff options
context:
space:
mode:
authormbarkhau <mbarkhau@gmail.com>2020-01-24 14:51:16 (GMT)
committerGiampaolo Rodola <g.rodola@gmail.com>2020-01-24 14:51:16 (GMT)
commit88704334e5262c6cd395a0809d4ef810f33f3ca5 (patch)
tree6ddbbf3be7e755ccaf6dab8d5dd14c533acda7a6 /Lib/shutil.py
parent66b00a9d3aacf6ed49412f48743e4913104a2bb3 (diff)
downloadcpython-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.py2
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()