diff options
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/Debugger.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/Debugger.py b/Lib/idlelib/Debugger.py index df51c45..dbb1a7d 100644 --- a/Lib/idlelib/Debugger.py +++ b/Lib/idlelib/Debugger.py @@ -440,15 +440,14 @@ class NamespaceViewer: return subframe = self.subframe frame = self.frame - for c in subframe.children.values(): + for c in list(subframe.children.values()): c.destroy() self.dict = None if not dict: l = Label(subframe, text="None") l.grid(row=0, column=0) else: - names = dict.keys() - names.sort() + names = sorted(dict) row = 0 for name in names: value = dict[name] |