diff options
-rw-r--r-- | Lib/idlelib/NEWS.txt | 7 | ||||
-rw-r--r-- | Lib/idlelib/PathBrowser.py | 2 |
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) |