mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
||||
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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue