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

Skip to content

Commit 7fe2c4a

Browse files
committed
#4355: refer to urlencode in the correct module.
1 parent 4f3359f commit 7fe2c4a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/urllib.parse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ The :mod:`urllib.parse` module defines the following functions:
106106
parsing errors. If false (the default), errors are silently ignored. If true,
107107
errors raise a :exc:`ValueError` exception.
108108

109-
Use the :func:`urllib.urlencode` function to convert such dictionaries into
110-
query strings.
109+
Use the :func:`urllib.parse.urlencode` function to convert such
110+
dictionaries into query strings.
111111

112112

113113
.. function:: parse_qsl(qs[, keep_blank_values[, strict_parsing]])

Doc/library/urllib.request.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The :mod:`urllib.request` module defines the following functions:
2323
that use *data*; the HTTP request will be a POST instead of a GET when the
2424
*data* parameter is provided. *data* should be a buffer in the standard
2525
:mimetype:`application/x-www-form-urlencoded` format. The
26-
:func:`urllib.urlencode` function takes a mapping or sequence of 2-tuples and
27-
returns a string in this format.
26+
:func:`urllib.parse.urlencode` function takes a mapping or sequence
27+
of 2-tuples and returns a string in this format.
2828

2929
The optional *timeout* parameter specifies a timeout in seconds for blocking
3030
operations like the connection attempt (if not specified, the global default
@@ -172,8 +172,8 @@ The following classes are provided:
172172
that use *data*; the HTTP request will be a POST instead of a GET when the
173173
*data* parameter is provided. *data* should be a buffer in the standard
174174
:mimetype:`application/x-www-form-urlencoded` format. The
175-
:func:`urllib.urlencode` function takes a mapping or sequence of 2-tuples and
176-
returns a string in this format.
175+
:func:`urllib.parse.urlencode` function takes a mapping or sequence
176+
of 2-tuples and returns a string in this format.
177177

178178
*headers* should be a dictionary, and will be treated as if :meth:`add_header`
179179
was called with each key and value as arguments. This is often used to "spoof"

0 commit comments

Comments
 (0)