New submission from Oleg Broytmann <[EMAIL PROTECTED]>: 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 <[EMAIL PROTECTED]> <http://bugs.python.org/issue2666> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com