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

Skip to content

Commit f0769e8

Browse files
committed
Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Docs changed.
1 parent 87082ee commit f0769e8

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/faq/library.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ Yes. Here's a simple example that uses urllib.request::
666666
'/cgi-bin/some-cgi-script', data=qs)
667667
msg, hdrs = req.read(), req.info()
668668

669-
Note that in general for URL-encoded POST operations, query strings must be
669+
Note that in general for a percent-encoded POST operations, query strings must be
670670
quoted by using :func:`urllib.parse.urlencode`. For example to send name="Guy Steele,
671671
Jr."::
672672

Doc/library/logging.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2373,7 +2373,7 @@ supports sending logging messages to a Web server, using either ``GET`` or
23732373

23742374
.. method:: emit(record)
23752375

2376-
Sends the record to the Web server as an URL-encoded dictionary.
2376+
Sends the record to the Web server as a percent-encoded dictionary.
23772377

23782378

23792379
.. _formatter-objects:

Doc/library/urllib.parse.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The :mod:`urllib.parse` module defines the following functions:
117117
values are lists of values for each name.
118118

119119
The optional argument *keep_blank_values* is a flag indicating whether blank
120-
values in URL encoded queries should be treated as blank strings. A true value
120+
values in percent-encoded queries should be treated as blank strings. A true value
121121
indicates that blanks should be retained as blank strings. The default false
122122
value indicates that blank values are to be ignored and treated as if they were
123123
not included.
@@ -137,7 +137,7 @@ The :mod:`urllib.parse` module defines the following functions:
137137
name, value pairs.
138138

139139
The optional argument *keep_blank_values* is a flag indicating whether blank
140-
values in URL encoded queries should be treated as blank strings. A true value
140+
values in percent-encoded queries should be treated as blank strings. A true value
141141
indicates that blanks should be retained as blank strings. The default false
142142
value indicates that blank values are to be ignored and treated as if they were
143143
not included.
@@ -330,7 +330,7 @@ The :mod:`urllib.parse` module defines the following functions:
330330
.. function:: urlencode(query, doseq=False, safe='', encoding=None, errors=None)
331331

332332
Convert a mapping object or a sequence of two-element tuples, which may
333-
either be a :class:`str` or a :class:`bytes`, to a "url-encoded" string,
333+
either be a :class:`str` or a :class:`bytes`, to a "percent-encoded" string,
334334
suitable to pass to :func:`urlopen` above as the optional *data* argument.
335335
This is useful to pass a dictionary of form fields to a ``POST`` request.
336336
The resulting string is a series of ``key=value`` pairs separated by ``'&'``

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The :mod:`urllib.request` module defines the following functions:
140140

141141
.. function:: url2pathname(path)
142142

143-
Convert the path component *path* from an encoded URL to the local syntax for a
143+
Convert the path component *path* from a percent-encoded URL to the local syntax for a
144144
path. This does not accept a complete URL. This function uses :func:`unquote`
145145
to decode *path*.
146146

0 commit comments

Comments
 (0)