Fix two obvious 2.xisms.
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 @@
             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]