diff --git a/Doc/faq/library.rst b/Doc/faq/library.rst index 4b0c3d32369..6b4f943234f 100644 --- a/Doc/faq/library.rst +++ b/Doc/faq/library.rst @@ -672,7 +672,7 @@ Yes. Here's a simple example that uses httplib:: if reply != 200: sys.stdout.write(httpobj.getfile().read()) -Note that in general for URL-encoded POST operations, query strings must be +Note that in general for a percent-encoded POST operations, query strings must be quoted by using :func:`urllib.quote`. For example to send name="Guy Steele, Jr.":: diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 3a0845d2fe5..b2f98d03738 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -2405,7 +2405,7 @@ supports sending logging messages to a Web server, using either ``GET`` or .. method:: emit(record) - Sends the record to the Web server as an URL-encoded dictionary. + Sends the record to the Web server as a percent-encoded dictionary. .. _formatter: diff --git a/Doc/library/urllib.rst b/Doc/library/urllib.rst index 5621f512266..eacde19f501 100644 --- a/Doc/library/urllib.rst +++ b/Doc/library/urllib.rst @@ -237,7 +237,7 @@ Utility functions .. function:: urlencode(query[, doseq]) Convert a mapping object or a sequence of two-element tuples to a - "url-encoded" string, suitable to pass to :func:`urlopen` above as the + "percent-encoded" string, suitable to pass to :func:`urlopen` above as the optional *data* argument. This is useful to pass a dictionary of form fields to a ``POST`` request. The resulting string is a series of ``key=value`` pairs separated by ``'&'`` characters, where both *key* and @@ -262,7 +262,7 @@ Utility functions .. function:: url2pathname(path) - Convert the path component *path* from an encoded URL to the local syntax for a + Convert the path component *path* from an percent-encoded URL to the local syntax for a path. This does not accept a complete URL. This function uses :func:`unquote` to decode *path*. diff --git a/Doc/library/urlparse.rst b/Doc/library/urlparse.rst index c3eb559d1d5..f3730e33085 100644 --- a/Doc/library/urlparse.rst +++ b/Doc/library/urlparse.rst @@ -131,7 +131,7 @@ The :mod:`urlparse` module defines the following functions: values are lists of values for each name. The optional argument *keep_blank_values* is a flag indicating whether blank - values in URL encoded queries should be treated as blank strings. A true value + values in percent-encoded queries should be treated as blank strings. A true value indicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included. @@ -154,7 +154,7 @@ The :mod:`urlparse` module defines the following functions: name, value pairs. The optional argument *keep_blank_values* is a flag indicating whether blank - values in URL encoded queries should be treated as blank strings. A true value + values in percent-encoded queries should be treated as blank strings. A true value indicates that blanks should be retained as blank strings. The default false value indicates that blank values are to be ignored and treated as if they were not included.