mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove legacy support for the BrowserControl module; the webbrowser
module has been included since Python 2.0, and that is the preferred interface.
This commit is contained in:
parent
895aa9da4c
commit
6e06531d92
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue