summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-08-13 17:39:20 (GMT)
committerGuido van Rossum <guido@python.org>2007-08-13 17:39:20 (GMT)
commit4c269c59287ec2f40db4c899e163ce6946742dbd (patch)
tree2717a4d6d3386e411013ec3e1fad9f5b34c375a3
parent4d9ed9fc33dba2a452548d2c5369ba92f56c0d79 (diff)
downloadcpython-4c269c59287ec2f40db4c899e163ce6946742dbd.zip
cpython-4c269c59287ec2f40db4c899e163ce6946742dbd.tar.gz
cpython-4c269c59287ec2f40db4c899e163ce6946742dbd.tar.bz2
Fix two obvious 2.xisms.
-rw-r--r--Lib/idlelib/Debugger.py5
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]