From 3f75741844f0b1b37bef5f48023f462bc22153a6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 7 Jun 1999 15:38:40 +0000 Subject: Remove unnecessary reference to pyclbr from test() code. --- Tools/idle/ObjectBrowser.py | 3 --- Tools/idle/TreeWidget.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/Tools/idle/ObjectBrowser.py b/Tools/idle/ObjectBrowser.py index b6bc81a..94b59d6 100644 --- a/Tools/idle/ObjectBrowser.py +++ b/Tools/idle/ObjectBrowser.py @@ -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() diff --git a/Tools/idle/TreeWidget.py b/Tools/idle/TreeWidget.py index b0706c9..21898ed 100644 --- a/Tools/idle/TreeWidget.py +++ b/Tools/idle/TreeWidget.py @@ -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() -- cgit v0.12