mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	replace has_key with 'in' operator
This commit is contained in:
		
							parent
							
								
									de0559998f
								
							
						
					
					
						commit
						6e3dbbdf39
					
				
					 29 changed files with 71 additions and 71 deletions
				
			
		|  | @ -124,7 +124,7 @@ def __init__(self, modules = None, dirs = None): | |||
|         self._ignore = { '<string>': 1 } | ||||
| 
 | ||||
|     def names(self, filename, modulename): | ||||
|         if self._ignore.has_key(modulename): | ||||
|         if modulename in self._ignore: | ||||
|             return self._ignore[modulename] | ||||
| 
 | ||||
|         # haven't seen this one before, so see if the module name is | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson