[New-bugs-announce] [issue2666] webbrowser.py doesn't properly handle BROWSER env var

Oleg Broytmann report at bugs.python.org
Mon Apr 21 22:16:10 CEST 2008


New submission from Oleg Broytmann <phd at phd.pp.ru>:

webbrowser.py ignores browsers listed in the BROWSER environment
variables if it doesn't recognize the browser. For example, if I add
"links2" to the BROWSER env var, webbrowser.py ignores it.

It is because _synthesize() doesn't know how to handle an unknown
browser. The attached patch checks if _synthesize() doesn't register a
browser and registers a GenericBrowser.

Another approach would be to register GenericBrowser in _synthesize().

----------
components: Library (Lib)
files: webbrowser.py.patch
keywords: patch
messages: 65665
nosy: phd
severity: normal
status: open
title: webbrowser.py doesn't properly handle BROWSER env var
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file10072/webbrowser.py.patch

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2666>
__________________________________


More information about the New-bugs-announce mailing list