]> granicus.if.org Git - python/commitdiff
Remove legacy support for the BrowserControl module; the webbrowser
authorFred Drake <fdrake@acm.org>
Wed, 18 Apr 2001 18:42:48 +0000 (18:42 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 18 Apr 2001 18:42:48 +0000 (18:42 +0000)
module has been included since Python 2.0, and that is the preferred
interface.

Tools/idle/EditorWindow.py

index 589b0ab69f2222e127e122c1397010c1169983d7..bb69a5be3ddb75cd9b0dc4ebede916fd85e1761b 100644 (file)
@@ -6,12 +6,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
@@ -298,7 +294,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