diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-09 20:01:35 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-08-09 20:01:35 (GMT) |
commit | 30e86a47676d2175901af29445aec5bd7967ef76 (patch) | |
tree | 027f475690974a0135de35bfa3b4a754c3737e82 /Lib | |
parent | f0769e8bd0cc4bad1641e5558787a6006d7b63b2 (diff) | |
download | cpython-30e86a47676d2175901af29445aec5bd7967ef76.zip cpython-30e86a47676d2175901af29445aec5bd7967ef76.tar.gz cpython-30e86a47676d2175901af29445aec5bd7967ef76.tar.bz2 |
Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Changes in Modules.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/cgi.py | 4 | ||||
-rw-r--r-- | Lib/logging/handlers.py | 2 | ||||
-rw-r--r-- | Lib/urllib/parse.py | 8 |
3 files changed, 7 insertions, 7 deletions
@@ -114,7 +114,7 @@ def parse(fp=None, environ=os.environ, keep_blank_values=0, strict_parsing=0): environ : environment dictionary; default: os.environ keep_blank_values: flag indicating whether blank values in - URL encoded forms should be treated as blank strings. + percent-encoded forms 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 @@ -394,7 +394,7 @@ class FieldStorage: environ : environment dictionary; default: os.environ keep_blank_values: flag indicating whether blank values in - URL encoded forms should be treated as blank strings. + percent-encoded forms 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 diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index a30dbdd..61dbf31 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -1012,7 +1012,7 @@ class HTTPHandler(logging.Handler): """ Emit a record. - Send the record to the Web server as an URL-encoded dictionary + Send the record to the Web server as a percent-encoded dictionary """ try: import http.client, urllib.parse diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index 00f0e5b..44f4a4b 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -378,10 +378,10 @@ def parse_qs(qs, keep_blank_values=False, strict_parsing=False): Arguments: - qs: URL-encoded query string to be parsed + qs: percent-encoded query string to be parsed keep_blank_values: flag indicating whether blank values in - URL encoded queries should be treated as blank strings. + 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 @@ -404,10 +404,10 @@ def parse_qsl(qs, keep_blank_values=False, strict_parsing=False): Arguments: - qs: URL-encoded query string to be parsed + qs: percent-encoded query string to be parsed keep_blank_values: flag indicating whether blank values in - URL encoded queries should be treated as blank strings. A + 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. |