[Python-checkins] r67551 - in python/branches/py3k/Doc/library: urllib.parse.rst urllib.request.rst

georg.brandl python-checkins at python.org
Fri Dec 5 08:32:56 CET 2008


Author: georg.brandl
Date: Fri Dec  5 08:32:56 2008
New Revision: 67551

Log:
#4355: refer to urlencode in the correct module.


Modified:
   python/branches/py3k/Doc/library/urllib.parse.rst
   python/branches/py3k/Doc/library/urllib.request.rst

Modified: python/branches/py3k/Doc/library/urllib.parse.rst
==============================================================================
--- python/branches/py3k/Doc/library/urllib.parse.rst	(original)
+++ python/branches/py3k/Doc/library/urllib.parse.rst	Fri Dec  5 08:32:56 2008
@@ -106,8 +106,8 @@
    parsing errors.  If false (the default), errors are silently ignored.  If true,
    errors raise a :exc:`ValueError` exception.
 
-   Use the :func:`urllib.urlencode` function to convert such dictionaries into
-   query strings.
+   Use the :func:`urllib.parse.urlencode` function to convert such
+   dictionaries into query strings.
 
 
 .. function:: parse_qsl(qs[, keep_blank_values[, strict_parsing]])

Modified: python/branches/py3k/Doc/library/urllib.request.rst
==============================================================================
--- python/branches/py3k/Doc/library/urllib.request.rst	(original)
+++ python/branches/py3k/Doc/library/urllib.request.rst	Fri Dec  5 08:32:56 2008
@@ -23,8 +23,8 @@
    that use *data*; the HTTP request will be a POST instead of a GET when the
    *data* parameter is provided.  *data* should be a buffer in the standard
    :mimetype:`application/x-www-form-urlencoded` format.  The
-   :func:`urllib.urlencode` function takes a mapping or sequence of 2-tuples and
-   returns a string in this format.
+   :func:`urllib.parse.urlencode` function takes a mapping or sequence
+   of 2-tuples and returns a string in this format.
 
    The optional *timeout* parameter specifies a timeout in seconds for blocking
    operations like the connection attempt (if not specified, the global default
@@ -172,8 +172,8 @@
    that use *data*; the HTTP request will be a POST instead of a GET when the
    *data* parameter is provided.  *data* should be a buffer in the standard
    :mimetype:`application/x-www-form-urlencoded` format.  The
-   :func:`urllib.urlencode` function takes a mapping or sequence of 2-tuples and
-   returns a string in this format.
+   :func:`urllib.parse.urlencode` function takes a mapping or sequence
+   of 2-tuples and returns a string in this format.
 
    *headers* should be a dictionary, and will be treated as if :meth:`add_header`
    was called with each key and value as arguments.  This is often used to "spoof"


More information about the Python-checkins mailing list