Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fd182cd

Browse files
committed
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
1 parent c683a29 commit fd182cd

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

Lib/idlelib/EditorWindow.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@
1212
from Tkinter import *
1313
import tkSimpleDialog
1414
import tkMessageBox
15-
try:
16-
import webbrowser
17-
except ImportError:
18-
import BrowserControl
19-
webbrowser = BrowserControl
20-
del BrowserControl
15+
16+
import webbrowser
2117
import idlever
2218
import WindowList
2319
from IdleConf import idleconf
@@ -313,7 +309,7 @@ def help_dialog(self, event=None):
313309
help_url = "http://www.python.org/doc/current/"
314310
if sys.platform[:3] == "win":
315311
fn = os.path.dirname(__file__)
316-
fn = os.path.join(fn, "../../Doc/index.html")
312+
fn = os.path.join(fn, os.pardir, os.pardir, "Doc", "index.html")
317313
fn = os.path.normpath(fn)
318314
if os.path.isfile(fn):
319315
help_url = fn

0 commit comments

Comments
 (0)