mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Changes in Modules.
This commit is contained in:
		
							parent
							
								
									f0769e8bd0
								
							
						
					
					
						commit
						30e86a4767
					
				
					 3 changed files with 7 additions and 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
 | 
					        environ         : environment dictionary; default: os.environ
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        keep_blank_values: flag indicating whether blank values in
 | 
					        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
 | 
					            A true value indicates that blanks should be retained as
 | 
				
			||||||
            blank strings.  The default false value indicates that
 | 
					            blank strings.  The default false value indicates that
 | 
				
			||||||
            blank values are to be ignored and treated as if they were
 | 
					            blank values are to be ignored and treated as if they were
 | 
				
			||||||
| 
						 | 
					@ -394,7 +394,7 @@ def __init__(self, fp=None, headers=None, outerboundary="",
 | 
				
			||||||
        environ         : environment dictionary; default: os.environ
 | 
					        environ         : environment dictionary; default: os.environ
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        keep_blank_values: flag indicating whether blank values in
 | 
					        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
 | 
					            A true value indicates that blanks should be retained as
 | 
				
			||||||
            blank strings.  The default false value indicates that
 | 
					            blank strings.  The default false value indicates that
 | 
				
			||||||
            blank values are to be ignored and treated as if they were
 | 
					            blank values are to be ignored and treated as if they were
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1012,7 +1012,7 @@ def emit(self, record):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        Emit a record.
 | 
					        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:
 | 
					        try:
 | 
				
			||||||
            import http.client, urllib.parse
 | 
					            import http.client, urllib.parse
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -378,10 +378,10 @@ def parse_qs(qs, keep_blank_values=False, strict_parsing=False):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Arguments:
 | 
					        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
 | 
					        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
 | 
					            A true value indicates that blanks should be retained as
 | 
				
			||||||
            blank strings.  The default false value indicates that
 | 
					            blank strings.  The default false value indicates that
 | 
				
			||||||
            blank values are to be ignored and treated as if they were
 | 
					            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:
 | 
					    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
 | 
					    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
 | 
					        true value indicates that blanks should be retained as blank
 | 
				
			||||||
        strings.  The default false value indicates that blank values
 | 
					        strings.  The default false value indicates that blank values
 | 
				
			||||||
        are to be ignored and treated as if they were  not included.
 | 
					        are to be ignored and treated as if they were  not included.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue