On 20 March 2005, rodsenra at gpr.com.br said: > 1166780 Fix _tryorder in webbrowser.py > ----------------------------------------------------------- > > This is my own patch. > > At the present time (Py2.4) documentation says: > """ > Under Unix, if the environment variable BROWSER exists, > it is interpreted to override the platform default list of > browsers,... > """ > (extract from Python-2.4/Doc/html/lib/module-webbrowser.html) > > But, when the environment variable BROWSER is messed up, > there is no reason not to try the other detected browser alternatives. I like it. Short, simple, and obvious. Can you think of a way to unit-test it? I took a brief look at the code, and it wasn't obvious to me. Might require factoring out a lazy initializer, and even then it might not work. And that would certainly call for more unit tests! Still, it's worth a shot. Greg -- Greg Ward <gward at python.net> http://www.gerg.ca/ Predestination was doomed from the start.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4