From fd182cd9d36adefba00d86542eb3134119cdc804 Mon Sep 17 00:00:00 2001 From: "Kurt B. Kaiser" Date: Sat, 14 Jul 2001 03:58:25 +0000 Subject: py-cvs-2000_07_13 (Rev 1.38) merge "Remove legacy support for the BrowserControl module; the webbrowser module has been included since Python 2.0, and that is the preferred interface." --fdrake --- Lib/idlelib/EditorWindow.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 17837a9..3ab452e 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -12,12 +12,8 @@ import imp from Tkinter import * import tkSimpleDialog import tkMessageBox -try: - import webbrowser -except ImportError: - import BrowserControl - webbrowser = BrowserControl - del BrowserControl + +import webbrowser import idlever import WindowList from IdleConf import idleconf @@ -313,7 +309,7 @@ class EditorWindow: help_url = "http://www.python.org/doc/current/" if sys.platform[:3] == "win": fn = os.path.dirname(__file__) - fn = os.path.join(fn, "../../Doc/index.html") + fn = os.path.join(fn, os.pardir, os.pardir, "Doc", "index.html") fn = os.path.normpath(fn) if os.path.isfile(fn): help_url = fn -- cgit v0.12