summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-08-09 20:05:35 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-08-09 20:05:35 (GMT)
commitea54b03b1e8c457b55db36ee7dc9300327c2a0b8 (patch)
tree8295aedc54bf9ecc7920da3a23854f801d0bd112
parentc3ce882c752d5b78062a526ea1a16ec2edd03144 (diff)
downloadcpython-ea54b03b1e8c457b55db36ee7dc9300327c2a0b8.zip
cpython-ea54b03b1e8c457b55db36ee7dc9300327c2a0b8.tar.gz
cpython-ea54b03b1e8c457b55db36ee7dc9300327c2a0b8.tar.bz2
Merged revisions 83900 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83900 | senthil.kumaran | 2010-08-10 01:23:52 +0530 (Tue, 10 Aug 2010) | 3 lines Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Docs changed. ........
-rw-r--r--Doc/faq/library.rst2
-rw-r--r--Doc/library/logging.rst2
-rw-r--r--Doc/library/urllib.parse.rst6
-rw-r--r--Doc/library/urllib.request.rst2
4 files changed, 6 insertions, 6 deletions
diff --git a/Doc/faq/library.rst b/Doc/faq/library.rst
index 1fc2389..b409bb6 100644
--- a/Doc/faq/library.rst
+++ b/Doc/faq/library.rst
@@ -669,7 +669,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 e6832fe..2dddc18 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -2126,7 +2126,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-objects:
diff --git a/Doc/library/urllib.parse.rst b/Doc/library/urllib.parse.rst
index 72b8028..37ddea0 100644
--- a/Doc/library/urllib.parse.rst
+++ b/Doc/library/urllib.parse.rst
@@ -114,7 +114,7 @@ The :mod:`urllib.parse` 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.
@@ -134,7 +134,7 @@ The :mod:`urllib.parse` 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.
@@ -327,7 +327,7 @@ The :mod:`urllib.parse` module defines the following functions:
.. function:: urlencode(query, doseq=False, safe='', encoding=None, errors=None)
Convert a mapping object or a sequence of two-element tuples, which may
- either be a :class:`str` or a :class:`bytes`, to a "url-encoded" string,
+ either be a :class:`str` or a :class:`bytes`, to a "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 ``'&'``
diff --git a/Doc/library/urllib.request.rst b/Doc/library/urllib.request.rst
index 75ff857..1b90d32 100644
--- a/Doc/library/urllib.request.rst
+++ b/Doc/library/urllib.request.rst
@@ -140,7 +140,7 @@ The :mod:`urllib.request` module defines the following 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 a 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*.