mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fix two obvious 2.xisms.
This commit is contained in:
parent
4d9ed9fc33
commit
4c269c5928
1 changed files with 2 additions and 3 deletions
|
@ -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]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue