summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/tree.py')
-rw-r--r--Lib/idlelib/tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/tree.py b/Lib/idlelib/tree.py
index 6229be4..5947268 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