mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
#4355: refer to urlencode in the correct module.
This commit is contained in:
parent
4f3359f45b
commit
7fe2c4af0e
2 changed files with 6 additions and 6 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue