mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Replace list of constants with tuples of constants.
This commit is contained in:
		
							parent
							
								
									07ead17318
								
							
						
					
					
						commit
						dbecd93b72
					
				
					 11 changed files with 29 additions and 29 deletions
				
			
		|  | @ -384,7 +384,7 @@ def _open(self, req, data=None): | |||
|                                 'unknown_open', req) | ||||
| 
 | ||||
|     def error(self, proto, *args): | ||||
|         if proto in ['http', 'https']: | ||||
|         if proto in ('http', 'https'): | ||||
|             # XXX http[s] protocols are special-cased | ||||
|             dict = self.handle_error['http'] # https is not different than http | ||||
|             proto = args[2]  # YUCK! | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Raymond Hettinger
						Raymond Hettinger