Kaydet (Commit) 4c269c59 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix two obvious 2.xisms.

üst 4d9ed9fc
...@@ -440,15 +440,14 @@ class NamespaceViewer: ...@@ -440,15 +440,14 @@ class NamespaceViewer:
return return
subframe = self.subframe subframe = self.subframe
frame = self.frame frame = self.frame
for c in subframe.children.values(): for c in list(subframe.children.values()):
c.destroy() c.destroy()
self.dict = None self.dict = None
if not dict: if not dict:
l = Label(subframe, text="None") l = Label(subframe, text="None")
l.grid(row=0, column=0) l.grid(row=0, column=0)
else: else:
names = dict.keys() names = sorted(dict)
names.sort()
row = 0 row = 0
for name in names: for name in names:
value = dict[name] value = dict[name]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment