diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-06-20 11:10:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-20 11:10:31 +0300 |
commit | 935586845815f5b4c7814794413f6a812d4bd45f (patch) | |
tree | 69297d0f173d3b42895adb1da65c99f1e021b586 /Lib/idlelib/tree.py | |
parent | a041e116db5f1e78222cbf2c22aae96457372680 (diff) | |
download | cpython-git-935586845815f5b4c7814794413f6a812d4bd45f.tar.gz |
bpo-41043: Escape literal part of the path for glob(). (GH-20994)
Diffstat (limited to 'Lib/idlelib/tree.py')
-rw-r--r-- | Lib/idlelib/tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/tree.py b/Lib/idlelib/tree.py index 6229be4e5a..5947268f5c 100644 --- a/Lib/idlelib/tree.py +++ b/Lib/idlelib/tree.py @@ -38,7 +38,7 @@ def listicons(icondir=ICONDIR): """Utility to display the available icons.""" root = Tk() import glob - list = glob.glob(os.path.join(icondir, "*.gif")) + list = glob.glob(os.path.join(glob.escape(icondir), "*.gif")) list.sort() images = [] row = column = 0 |