mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Geoffrey Gerrietts discovered that a KeyError was caught that probably
should have been a NameError. I'm checking in a change that catches both, just to be sure -- I can't be bothered trying to understand this code any more. :-)
This commit is contained in:
		
							parent
							
								
									97d3b93c2f
								
							
						
					
					
						commit
						e13be40b88
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -30,7 +30,7 @@ def __getattr__(self, name): | |||
|         except AttributeError: | ||||
|             try: | ||||
|                 ga = self.__formalclass__.__getattr__('__usergetattr__') | ||||
|             except KeyError: | ||||
|             except (KeyError, AttributeError): | ||||
|                 raise AttributeError, name | ||||
|             return ga(self, name) | ||||
|         if type(raw) != types.FunctionType: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum