[Python-checkins] CVS: python/dist/src/Tools/idle EditorWindow.py,1.37,1.38
Fred L. Drake
fdrake@users.sourceforge.net
Wed, 18 Apr 2001 11:42:50 -0700
Update of /cvsroot/python/python/dist/src/Tools/idle
In directory usw-pr-cvs1:/tmp/cvs-serv4966
Modified Files:
EditorWindow.py
Log Message:
Remove legacy support for the BrowserControl module; the webbrowser
module has been included since Python 2.0, and that is the preferred
interface.
Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/idle/EditorWindow.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** EditorWindow.py 2000/09/22 10:05:54 1.37
--- EditorWindow.py 2001/04/18 18:42:48 1.38
***************
*** 7,16 ****
import tkSimpleDialog
import tkMessageBox
! try:
! import webbrowser
! except ImportError:
! import BrowserControl
! webbrowser = BrowserControl
! del BrowserControl
import idlever
import WindowList
--- 7,12 ----
import tkSimpleDialog
import tkMessageBox
!
! import webbrowser
import idlever
import WindowList
***************
*** 299,303 ****
if sys.platform[:3] == "win":
fn = os.path.dirname(__file__)
! fn = os.path.join(fn, "../../Doc/index.html")
fn = os.path.normpath(fn)
if os.path.isfile(fn):
--- 295,299 ----
if sys.platform[:3] == "win":
fn = os.path.dirname(__file__)
! fn = os.path.join(fn, os.pardir, os.pardir, "Doc", "index.html")
fn = os.path.normpath(fn)
if os.path.isfile(fn):