summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-05 07:32:56 (GMT)
committerGeorg Brandl <georg@python.org>2008-12-05 07:32:56 (GMT)
commit7fe2c4af0e58d8c7a9f3f91c29559b14fb78c58d (patch)
tree2c69d327a30ed5c3fbff2d4e3c628730903d789d
parent4f3359f45be329e72ab78334aba4470bc9976501 (diff)
downloadcpython-7fe2c4af0e58d8c7a9f3f91c29559b14fb78c58d.zip
cpython-7fe2c4af0e58d8c7a9f3f91c29559b14fb78c58d.tar.gz
cpython-7fe2c4af0e58d8c7a9f3f91c29559b14fb78c58d.tar.bz2
#4355: refer to urlencode in the correct module.
-rw-r--r--Doc/library/urllib.parse.rst4
-rw-r--r--Doc/library/urllib.request.rst8
2 files changed, 6 insertions, 6 deletions
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index 26376e7..d013601 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -106,8 +106,8 @@ The :mod:`urllib.parse` module defines the following functions:
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]])
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 3038588..0b5f892 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -23,8 +23,8 @@ The :mod:`urllib.request` module defines the following functions:
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 @@ The following classes are provided:
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"