From: Guido van Rossum Date: Mon, 13 Aug 2007 17:39:20 +0000 (+0000) Subject: Fix two obvious 2.xisms. X-Git-Tag: v3.0a1~413 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c269c59287ec2f40db4c899e163ce6946742dbd;p=python Fix two obvious 2.xisms. --- diff --git a/Lib/idlelib/Debugger.py b/Lib/idlelib/Debugger.py index df51c45327..dbb1a7dfe7 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]