[Python-checkins] r77024 - in python/branches/py3k: Doc/library/webbrowser.rst

ezio.melotti python-checkins at python.org
Thu Dec 24 04:23:23 CET 2009


Author: ezio.melotti
Date: Thu Dec 24 04:23:23 2009
New Revision: 77024

Log:
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
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Doc/library/webbrowser.rst

Modified: python/branches/py3k/Doc/library/webbrowser.rst
==============================================================================
--- python/branches/py3k/Doc/library/webbrowser.rst	(original)
+++ python/branches/py3k/Doc/library/webbrowser.rst	Thu Dec 24 04:23:23 2009
@@ -17,10 +17,10 @@
 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 @@
 
 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)


More information about the Python-checkins mailing list