Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aad7cc9

Browse files
committed
Clarify BROWSER envar behavior in webbrowser.py. Noted by David Turner. Closes #21248
1 parent 8b4a272 commit aad7cc9

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/webbrowser.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ will be used if graphical browsers are not available or an X11 display isn't
1919
available. If text-mode browsers are used, the calling process will block until
2020
the user exits the browser.
2121

22-
If the environment variable :envvar:`BROWSER` exists, it is interpreted to
23-
override the platform default list of browsers, as a :data:`os.pathsep`-separated
24-
list of browsers to try in order. When the value of a list part contains the
25-
string ``%s``, then it is interpreted as a literal browser command line to be
26-
used with the argument URL substituted for ``%s``; if the part does not contain
27-
``%s``, it is simply interpreted as the name of the browser to launch. [1]_
22+
If the environment variable :envvar:`BROWSER` exists, it is interpreted as the
23+
:data:`os.pathsep`-separated list of browsers to try ahead of the the platform
24+
defaults. When the value of a list part contains the string ``%s``, then it is
25+
interpreted as a literal browser command line to be used with the argument URL
26+
substituted for ``%s``; if the part does not contain ``%s``, it is simply
27+
interpreted as the name of the browser to launch. [1]_
2828

2929
For non-Unix platforms, or when a remote browser is available on Unix, the
3030
controlling process will not wait for the user to finish with the browser, but

0 commit comments

Comments
 (0)