From 3cf1f154edb88c108877729ea09f4ac174697fea Mon Sep 17 00:00:00 2001 From: Bumsik Kim Date: Tue, 3 Jul 2018 07:30:06 -0400 Subject: bpo-34019: Fix wrong arguments for Opera Browser (#8047) The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module. * Correct the arguments passed to the Opera Browser when opening a new URL. --- Lib/webbrowser.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Lib/webbrowser.py') diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 2a5729b446..d717193d05 100755 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -308,11 +308,10 @@ Chromium = Chrome class Opera(UnixBrowser): "Launcher class for Opera browser." - raise_opts = ["-noraise", ""] - remote_args = ['-remote', 'openURL(%s%action)'] + remote_args = ['%action', '%s'] remote_action = "" - remote_action_newwin = ",new-window" - remote_action_newtab = ",new-page" + remote_action_newwin = "--new-window" + remote_action_newtab = "" background = True -- cgit v1.2.1