mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Bug #1697782: remove all remaining code that uses types.InstanceType.
This commit is contained in:
		
							parent
							
								
									b5ddcfd2a2
								
							
						
					
					
						commit
						57b39e0916
					
				
					 8 changed files with 10 additions and 38 deletions
				
			
		|  | @ -1433,8 +1433,6 @@ def describe(thing): | |||
|         return 'function ' + thing.__name__ | ||||
|     if inspect.ismethod(thing): | ||||
|         return 'method ' + thing.__name__ | ||||
|     if type(thing) is types.InstanceType: | ||||
|         return 'instance of ' + thing.__class__.__name__ | ||||
|     return type(thing).__name__ | ||||
| 
 | ||||
| def locate(path, forceload=0): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl