diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-06-20 08:10:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-20 08:10:31 (GMT) |
commit | 935586845815f5b4c7814794413f6a812d4bd45f (patch) | |
tree | 69297d0f173d3b42895adb1da65c99f1e021b586 /Lib/test/support/__init__.py | |
parent | a041e116db5f1e78222cbf2c22aae96457372680 (diff) | |
download | cpython-935586845815f5b4c7814794413f6a812d4bd45f.zip cpython-935586845815f5b4c7814794413f6a812d4bd45f.tar.gz cpython-935586845815f5b4c7814794413f6a812d4bd45f.tar.bz2 |
bpo-41043: Escape literal part of the path for glob(). (GH-20994)
Diffstat (limited to 'Lib/test/support/__init__.py')
-rw-r--r-- | Lib/test/support/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index bceb8cd..5707d8e 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1345,7 +1345,7 @@ class PythonSymlink: dll, os.path.join(dest_dir, os.path.basename(dll)) )) - for runtime in glob.glob(os.path.join(src_dir, "vcruntime*.dll")): + for runtime in glob.glob(os.path.join(glob.escape(src_dir), "vcruntime*.dll")): self._also_link.append(( runtime, os.path.join(dest_dir, os.path.basename(runtime)) |