@@ -138,14 +138,13 @@ The following classes are provided:
138138
139139 *url * should be a string containing a valid URL.
140140
141- *data * may be a string specifying additional data to send to the
142- server, or ``None `` if no such data is needed. Currently HTTP
143- requests are the only ones that use *data *; the HTTP request will
144- be a POST instead of a GET when the *data * parameter is provided.
145- *data * should be a buffer in the standard
146- :mimetype: `application/x-www-form-urlencoded ` format. The
147- :func: `urllib.parse.urlencode ` function takes a mapping or sequence
148- of 2-tuples and returns a string in this format.
141+ *data * may be a bytes object specifying additional data to send to the
142+ server, or ``None `` if no such data is needed. Currently HTTP requests are
143+ the only ones that use *data *; the HTTP request will be a POST instead of a
144+ GET when the *data * parameter is provided. *data * should be a buffer in the
145+ standard :mimetype: `application/x-www-form-urlencoded ` format. The
146+ :func: `urllib.parse.urlencode ` function takes a mapping or sequence of
147+ 2-tuples and returns a string in this format.
149148
150149 *headers * should be a dictionary, and will be treated as if
151150 :meth: `add_header ` was called with each key and value as arguments.
@@ -1122,10 +1121,10 @@ some point in the future.
11221121 size in response to a retrieval request.
11231122
11241123 If the *url * uses the :file: `http: ` scheme identifier, the optional *data *
1125- argument may be given to specify a ``POST `` request (normally the request type
1126- is ``GET ``). The *data * argument must in standard
1127- :mimetype: `application/x-www-form-urlencoded ` format; see the :func: ` urlencode `
1128- function below.
1124+ argument may be given to specify a ``POST `` request (normally the request
1125+ type is ``GET ``). The *data * argument must be a bytes object in standard
1126+ :mimetype: `application/x-www-form-urlencoded ` format; see the
1127+ :func: ` urlencode ` function below.
11291128
11301129 :func: `urlretrieve ` will raise :exc: `ContentTooShortError ` when it detects that
11311130 the amount of data available was less than the expected amount (which is the
0 commit comments