diff options
author | Ned Deily <nad@acm.org> | 2012-10-19 01:16:44 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2012-10-19 01:16:44 (GMT) |
commit | bfbf3f139d84d374e1256542484c02597da20ada (patch) | |
tree | a2b60750e32986896a50c5bd3573217c46389285 /Lib/idlelib | |
parent | 44362a88ad8d541c46de0e149975d6a9805b981e (diff) | |
download | cpython-bfbf3f139d84d374e1256542484c02597da20ada.zip cpython-bfbf3f139d84d374e1256542484c02597da20ada.tar.gz cpython-bfbf3f139d84d374e1256542484c02597da20ada.tar.bz2 |
Issue #16226: Fix IDLE Path Browser crash.
(Patch by Roger Serwy)
Diffstat (limited to 'Lib/idlelib')
-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..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) |