]> granicus.if.org Git - python/commitdiff
Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations...
authorSenthil Kumaran <orsenthil@gmail.com>
Mon, 9 Aug 2010 20:01:35 +0000 (20:01 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Mon, 9 Aug 2010 20:01:35 +0000 (20:01 +0000)
Lib/cgi.py
Lib/logging/handlers.py
Lib/urllib/parse.py

index 9e16a1df6237d20f567990c6f70793538503b3b6..7da2b23f6e4c3955b0f517cb48663ad2a06d121a 100755 (executable)
@@ -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
index a30dbdd16ea91a2d8c87b81eecb70d601c40829a..61dbf3152d9500e821f2482ff64bdb9957b1f63a 100644 (file)
@@ -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
index 00f0e5bec49ee18beb5e0d094ec5d787af21ec09..44f4a4b13e7d0746ca3073411e6dc8e919e74769 100644 (file)
@@ -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.