summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-06-07 15:38:40 (GMT)
committerGuido van Rossum <guido@python.org>1999-06-07 15:38:40 (GMT)
commit3f75741844f0b1b37bef5f48023f462bc22153a6 (patch)
treef95c247323041ef0f28c041bf226911bed966001 /Tools
parentad380551f6c63711bbb66ca85810df2e3cecf3c3 (diff)
downloadcpython-3f75741844f0b1b37bef5f48023f462bc22153a6.zip
cpython-3f75741844f0b1b37bef5f48023f462bc22153a6.tar.gz
cpython-3f75741844f0b1b37bef5f48023f462bc22153a6.tar.bz2
Remove unnecessary reference to pyclbr from test() code.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/ObjectBrowser.py3
-rw-r--r--Tools/idle/TreeWidget.py2
2 files changed, 0 insertions, 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()