[Patches] [ python-Patches-754022 ] Enhanced webbrowser.py

SourceForge.net noreply at sourceforge.net
Thu Oct 7 09:48:44 CEST 2004


Patches item #754022, was opened at 2003-06-13 19:24
Message generated for change (Comment added) made by phd
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=754022&group_id=5470

Category: Library (Lib)
Group: Python 2.4
Status: Open
Resolution: None
Priority: 6
Submitted By: Oleg Broytmann (phd)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Enhanced webbrowser.py

Initial Comment:
The patch enhances webbrowser.py.

First, all calls to os.system return result code, and
the inverse of the code (it is ok/fail status) passed
through all higher-level routines up to top-level call
to open(url). This allows to check if a browser was
really started.

Second, the very open() modified so it is now trying to
run all registered browsers in order until a browser
returns 1.

Third, the file can be used as a program: webbrowser.py
url. Optional parameters -n allows to open the url in a
new window.


----------------------------------------------------------------------

>Comment By: Oleg Broytmann (phd)
Date: 2004-10-07 11:48

Message:
Logged In: YES 
user_id=4799

And don't forget to make it executable.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=754022&group_id=5470


More information about the Patches mailing list