summaryrefslogtreecommitdiffstats
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
authorBumsik Kim <k.bumsik@gmail.com>2018-07-03 11:30:06 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2018-07-03 11:30:06 (GMT)
commit3cf1f154edb88c108877729ea09f4ac174697fea (patch)
tree3ca79a59a98c1008666ed7b0677f62fe547abb0f /Lib/webbrowser.py
parent23401fb960bb94e6ea62d2999527968d53d3fc65 (diff)
downloadcpython-3cf1f154edb88c108877729ea09f4ac174697fea.zip
cpython-3cf1f154edb88c108877729ea09f4ac174697fea.tar.gz
cpython-3cf1f154edb88c108877729ea09f4ac174697fea.tar.bz2
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.
Diffstat (limited to 'Lib/webbrowser.py')
-rwxr-xr-xLib/webbrowser.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 2a5729b..d717193 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