From bfbf3f139d84d374e1256542484c02597da20ada Mon Sep 17 00:00:00 2001
From: Ned Deily <nad@acm.org>
Date: Thu, 18 Oct 2012 18:16:44 -0700
Subject: Issue #16226: Fix IDLE Path Browser crash. (Patch by Roger Serwy)

---
 Lib/idlelib/NEWS.txt       | 7 +++++++
 Lib/idlelib/PathBrowser.py | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/Lib/idlelib/NEWS.txt b/Lib/idlelib/NEWS.txt
index a0c957e..292c5a0 100644
--- a/Lib/idlelib/NEWS.txt
+++ b/Lib/idlelib/NEWS.txt
@@ -1,3 +1,10 @@
+What's New in IDLE 3.3.1?
+=========================
+
+- 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)
-- 
cgit v0.12

