Kaydet (Commit) 3f757418 authored tarafından Guido van Rossum's avatar Guido van Rossum

Remove unnecessary reference to pyclbr from test() code.

üst ad380551
......@@ -137,15 +137,12 @@ def make_objecttreeitem(labeltext, object, setfunction=None):
def test():
import sys
from Tkinter import Toplevel
import pyclbr
import PyShell
pyclbr._modules.clear()
root = Toplevel(PyShell.root)
root.configure(bd=0, bg="yellow")
root.focus_set()
sc = ScrolledCanvas(root, bg="white", highlightthickness=0, takefocus=1)
sc.frame.pack(expand=1, fill="both")
#item = FileTreeItem("C:/windows/desktop")
item = make_objecttreeitem("sys", sys)
node = TreeNode(sc.canvas, None, item)
node.expand()
......
......@@ -436,8 +436,6 @@ class ScrolledCanvas:
def test():
import PyShell
import pyclbr
pyclbr._modules.clear()
root = Toplevel(PyShell.root)
root.configure(bd=0, bg="yellow")
root.focus_set()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment