diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2009-12-24 03:23:23 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2009-12-24 03:23:23 (GMT) |
commit | 579c29be27ce417f630731aa4f5baa810ac61541 (patch) | |
tree | c3636d26dbff2e2174cf874b598f5e8426e873bd /Doc/library/webbrowser.rst | |
parent | 037f836b2770704a23a580f3d6021874e25ed977 (diff) | |
download | cpython-579c29be27ce417f630731aa4f5baa810ac61541.zip cpython-579c29be27ce417f630731aa4f5baa810ac61541.tar.gz cpython-579c29be27ce417f630731aa4f5baa810ac61541.tar.bz2 |
Merged revisions 77022 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77022 | ezio.melotti | 2009-12-24 04:54:53 +0200 (Thu, 24 Dec 2009) | 1 line
Added markup and default arg, fixed example
........
Diffstat (limited to 'Doc/library/webbrowser.rst')
-rw-r--r-- | Doc/library/webbrowser.rst | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/webbrowser.rst b/Doc/library/webbrowser.rst index 202d7c1..e8f4756 100644 --- a/Doc/library/webbrowser.rst +++ b/Doc/library/webbrowser.rst @@ -17,10 +17,10 @@ available. If text-mode browsers are used, the calling process will block until the user exits the browser. If the environment variable :envvar:`BROWSER` exists, it is interpreted to -override the platform default list of browsers, as a os.pathsep-separated list -of browsers to try in order. When the value of a list part contains the string -``%s``, then it is interpreted as a literal browser command line to be used -with the argument URL substituted for ``%s``; if the part does not contain +override the platform default list of browsers, as a :data:`os.pathsep`-separated +list of browsers to try in order. When the value of a list part contains the +string ``%s``, then it is interpreted as a literal browser command line to be +used with the argument URL substituted for ``%s``; if the part does not contain ``%s``, it is simply interpreted as the name of the browser to launch. [1]_ For non-Unix platforms, or when a remote browser is available on Unix, the @@ -156,10 +156,10 @@ Notes: Here are some simple examples:: - url = 'http://www.python.org' + url = 'http://www.python.org/' # Open URL in a new tab, if a browser window is already open. - webbrowser.open_new_tab(url + '/doc') + webbrowser.open_new_tab(url + 'doc/') # Open URL in new window, raising the window if possible. webbrowser.open_new(url) |