Bugs item #900580, was opened at 2004-02-19 14:59
Message generated for change (Comment added) made by jbrandmeyer
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=900580&group_id=5470
Category: IDLE
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan Brandmeyer (jbrandmeyer)
Assigned to: Nobody/Anonymous (nobody)
Summary: IDLE docs broken on OSX
Initial Comment:
Under Apple's OSX operating system, the variable
sys.platform is named'darwin'. In at least one place,
idle makes a test to see if thecurrent platform is MS
Windows by checking for the substring 'win'
insys.platform, which leads to incorrect behavior on
the Mac.
In particular, in
lib/python2.3/idlelib/EditorWindow.py, member function
EditorWindow.python_docs() behaves incorrectly on OS X.
I believe that if the test for MS Windows is
completely removed that you will get correct behavior
on all platforms, based on my reading of the webbrowser
module source.
Please change that function to the following (near line
313):
def python_docs(self, event=None):
webbrowser.open(self.help_url)
return "break"
----------------------------------------------------------------------
Comment By: Jonathan Brandmeyer (jbrandmeyer)
Date: 2004-03-02 14:06
Message:
Logged In: YES
user_id=676765
There are a series of changes related to the one I mentioned
before. In addition, Safari requires the full URI to local
files when started via the webbrowser module (or via several
other methods) even though it automatically prepends that
string when entered in the address bar. So, I have an
additional patch that makes appropriate modifications for
file:/// prefixed paths.
----------------------------------------------------------------------