summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2012-10-19 01:19:11 (GMT)
committerNed Deily <nad@acm.org>2012-10-19 01:19:11 (GMT)
commit5d590d8705bf7f467242718afae7c6826f23c6a6 (patch)
tree7c0682becadd98700a876b656f0f3172c6836add
parente453e4c007b5dd5feade42bd3f3294cb8af9fd37 (diff)
parentbfbf3f139d84d374e1256542484c02597da20ada (diff)
downloadcpython-5d590d8705bf7f467242718afae7c6826f23c6a6.zip
cpython-5d590d8705bf7f467242718afae7c6826f23c6a6.tar.gz
cpython-5d590d8705bf7f467242718afae7c6826f23c6a6.tar.bz2
Issue #16226: Fix IDLE Path Browser crash.
(Patch by Roger Serwy)
-rw-r--r--Lib/idlelib/NEWS.txt7
-rw-r--r--Lib/idlelib/PathBrowser.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index a0c957e..12282b9 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -1,3 +1,10 @@
+What's New in IDLE 3.4.0?
+=========================
+
+- Issue #16226: Fix IDLE Path Browser crash.
+ (Patch by Roger Serwy)
+
+
What's New in IDLE 3.3.0?
=========================
diff --git a/Lib/idlelib/PathBrowser.py b/Lib/idlelib/PathBrowser.py
index 9954f07..55bf1aa 100644
--- a/Lib/idlelib/PathBrowser.py
+++ b/Lib/idlelib/PathBrowser.py
@@ -75,7 +75,7 @@ class DirBrowserTreeItem(TreeItem):
suffixes += importlib.machinery.SOURCE_SUFFIXES[:]
suffixes += importlib.machinery.BYTECODE_SUFFIXES[:]
sorted = []
- for suff, mode, flag in suffixes:
+ for suff in suffixes:
i = -len(suff)
for name in allnames[:]:
normed_name = os.path.normcase(name)