Skip to content

Commit a78ebe6

Browse files
committed
Issue python#24790: Remove extraneous code (which also create 2 & 3 conflicts).
1 parent 6579459 commit a78ebe6

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

Lib/idlelib/StackViewer.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111
def StackBrowser(root, flist=None, tb=None, top=None):
1212
if top is None:
13-
from tkinter import Toplevel
14-
top = Toplevel(root)
13+
top = tk.Toplevel(root)
1514
sc = ScrolledCanvas(top, bg="white", highlightthickness=0)
1615
sc.frame.pack(expand=1, fill="both")
1716
item = StackTreeItem(flist, tb)
@@ -108,12 +107,9 @@ def GetLabelText(self):
108107
def IsExpandable(self):
109108
return len(self.object) > 0
110109

111-
def keys(self):
112-
return list(self.object.keys())
113-
114110
def GetSubList(self):
115111
sublist = []
116-
for key in self.keys():
112+
for key in self.object.keys():
117113
try:
118114
value = self.object[key]
119115
except KeyError:

0 commit comments

Comments
 (0)