gh-102871: Remove obsolete browsers from webbrowser by DBJim · Pull Request #102872 · python/cpython (original) (raw)
This issue broke the Konqueror class which still uses the _remote() method, removed by this PR:
$ ./python -m webbrowser https://www.google.com/
Traceback (most recent call last):
File "/home/vstinner/python/main/Lib/runpy.py", line 198, in _run_module_as_main
return _run_code(code, main_globals, None,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/runpy.py", line 88, in _run_code
exec(code, run_globals)
File "/home/vstinner/python/main/Lib/webbrowser.py", line 631, in <module>
main()
File "/home/vstinner/python/main/Lib/webbrowser.py", line 626, in main
open(url, new_win)
File "/home/vstinner/python/main/Lib/webbrowser.py", line 86, in open
if browser.open(url, new, autoraise):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/vstinner/python/main/Lib/webbrowser.py", line 398, in open
ok = self._remote("LOAD " + url)
^^^^^^^^^^^^
AttributeError: 'Konqueror' object has no attribute '_remote'
By the way, webbrowser.Konqueror defines twice its open()
method!