Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1f3a4069
Commit
1f3a4069
authored
Mar 21, 2007
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #1684254: split BROWSER contents with shlex to avoid displaying 'URL'.
parent
9c026775
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Lib/webbrowser.py
Lib/webbrowser.py
+6
-1
No files found.
Lib/webbrowser.py
View file @
1f3a4069
...
...
@@ -2,6 +2,7 @@
"""Interfaces for launching and remotely controlling Web browsers."""
import
os
import
shlex
import
sys
import
stat
import
subprocess
...
...
@@ -32,7 +33,11 @@ def get(using=None):
for
browser
in
alternatives
:
if
'%s'
in
browser
:
# User gave us a command line, split it into name and args
return
GenericBrowser
(
browser
.
split
())
browser
=
shlex
.
split
(
browser
)
if
browser
[
-
1
]
==
'&'
:
return
BackgroundBrowser
(
browser
[:
-
1
])
else
:
return
GenericBrowser
(
browser
)
else
:
# User gave us a browser name or path.
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment