Remove unnecessary reference to pyclbr from test() code.

This commit is contained in:
Guido van Rossum 1999-06-07 15:38:40 +00:00
parent ad380551f6
commit 3f75741844
2 changed files with 0 additions and 5 deletions

View File

@ -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()

View File

@ -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()