[Python-3000-checkins] r56986 - python/branches/py3k/Lib/idlelib/Debugger.py

guido.van.rossum python-3000-checkins at python.org
Mon Aug 13 19:39:20 CEST 2007


Author: guido.van.rossum
Date: Mon Aug 13 19:39:20 2007
New Revision: 56986

Modified:
   python/branches/py3k/Lib/idlelib/Debugger.py
Log:
Fix two obvious 2.xisms.


Modified: python/branches/py3k/Lib/idlelib/Debugger.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/Debugger.py	(original)
+++ python/branches/py3k/Lib/idlelib/Debugger.py	Mon Aug 13 19:39:20 2007
@@ -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]


More information about the Python-3000-checkins mailing list