diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-18 17:26:57 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2015-08-18 17:26:57 (GMT) |
commit | a78ebe63239eb665ae139cf8155108af16b26b64 (patch) | |
tree | f9d445d31f6995b2d14e0dab61a99dfb30d428ce /Lib/idlelib | |
parent | 6579459d4b10b8eef47e5de609de4aa54999fb06 (diff) | |
download | cpython-a78ebe63239eb665ae139cf8155108af16b26b64.zip cpython-a78ebe63239eb665ae139cf8155108af16b26b64.tar.gz cpython-a78ebe63239eb665ae139cf8155108af16b26b64.tar.bz2 |
Issue #24790: Remove extraneous code (which also create 2 & 3 conflicts).
Diffstat (limited to 'Lib/idlelib')
-rw-r--r-- | Lib/idlelib/StackViewer.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/idlelib/StackViewer.py b/Lib/idlelib/StackViewer.py index b1e5e26..36507ee 100644 --- a/Lib/idlelib/StackViewer.py +++ b/Lib/idlelib/StackViewer.py @@ -10,8 +10,7 @@ from idlelib.PyShell import PyShellFileList def StackBrowser(root, flist=None, tb=None, top=None): if top is None: - from tkinter import Toplevel - top = Toplevel(root) + top = tk.Toplevel(root) sc = ScrolledCanvas(top, bg="white", highlightthickness=0) sc.frame.pack(expand=1, fill="both") item = StackTreeItem(flist, tb) @@ -108,12 +107,9 @@ class VariablesTreeItem(ObjectTreeItem): def IsExpandable(self): return len(self.object) > 0 - def keys(self): - return list(self.object.keys()) - def GetSubList(self): sublist = [] - for key in self.keys(): + for key in self.object.keys(): try: value = self.object[key] except KeyError: |