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
				
			
		|  | @ -230,7 +230,7 @@ def _get_f_locals(self): | |||
|         return self._get_dict_proxy(did) | ||||
| 
 | ||||
|     def _get_dict_proxy(self, did): | ||||
|         if self._dictcache.has_key(did): | ||||
|         if did in self._dictcache: | ||||
|             return self._dictcache[did] | ||||
|         dp = DictProxy(self._conn, self._oid, did) | ||||
|         self._dictcache[did] = dp | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson