mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	Whitespace normalization.
This commit is contained in:
		
							parent
							
								
									e101df9748
								
							
						
					
					
						commit
						92037a15a9
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -299,7 +299,7 @@ def open_http(self, url, data=None): | |||
| 
 | ||||
|             #print "proxy via http:", host, selector | ||||
|         if not host: raise IOError, ('http error', 'no host given') | ||||
| 	 | ||||
| 
 | ||||
|         if proxy_passwd: | ||||
|             import base64 | ||||
|             proxy_auth = base64.encodestring(proxy_passwd).strip() | ||||
|  | @ -672,7 +672,7 @@ def http_error_401(self, url, fp, errcode, errmsg, headers, data=None): | |||
|             return getattr(self,name)(url, realm) | ||||
|         else: | ||||
|             return getattr(self,name)(url, realm, data) | ||||
|      | ||||
| 
 | ||||
|     def http_error_407(self, url, fp, errcode, errmsg, headers, data=None): | ||||
|         """Error 407 -- proxy authentication required. | ||||
|         This function supports Basic authentication only.""" | ||||
|  | @ -694,7 +694,7 @@ def http_error_407(self, url, fp, errcode, errmsg, headers, data=None): | |||
|             return getattr(self,name)(url, realm) | ||||
|         else: | ||||
|             return getattr(self,name)(url, realm, data) | ||||
|      | ||||
| 
 | ||||
|     def retry_proxy_http_basic_auth(self, url, realm, data=None): | ||||
|         host, selector = splithost(url) | ||||
|         newurl = 'http://' + host + selector | ||||
|  | @ -728,7 +728,7 @@ def retry_proxy_https_basic_auth(self, url, realm, data=None): | |||
|             return self.open(newurl) | ||||
|         else: | ||||
|             return self.open(newurl, data) | ||||
| 	     | ||||
| 
 | ||||
|     def retry_http_basic_auth(self, url, realm, data=None): | ||||
|         host, selector = splithost(url) | ||||
|         i = host.find('@') + 1 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters