]> granicus.if.org Git - python/commitdiff
Fix two obvious 2.xisms.
authorGuido van Rossum <guido@python.org>
Mon, 13 Aug 2007 17:39:20 +0000 (17:39 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 13 Aug 2007 17:39:20 +0000 (17:39 +0000)
Lib/idlelib/Debugger.py

index df51c453271b3900bf7d0da7a1be9bc20ac27da6..dbb1a7dfe7433006fceb0132893b4fc415e2e5e0 100644 (file)
@@ -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]