[Python-checkins] cpython (merge 3.4 -> 3.5): Merge with 3.4

terry.reedy python-checkins at python.org
Tue Aug 18 20:19:14 CEST 2015


https://hg.python.org/cpython/rev/01d91caa58b6
changeset:   97441:01d91caa58b6
branch:      3.5
parent:      97437:5b9209e4c3e4
parent:      97440:010264c9ceae
user:        Terry Jan Reedy <tjreedy at udel.edu>
date:        Tue Aug 18 13:27:18 2015 -0400
summary:
  Merge with 3.4

files:
  Lib/idlelib/StackViewer.py |  8 ++------
  1 files changed, 2 insertions(+), 6 deletions(-)


diff --git a/Lib/idlelib/StackViewer.py b/Lib/idlelib/StackViewer.py
--- a/Lib/idlelib/StackViewer.py
+++ b/Lib/idlelib/StackViewer.py
@@ -10,8 +10,7 @@
 
 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 @@
     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:

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list