mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix new pop() method on os.environ on ignorecase-platforms.
This commit is contained in:
		
							parent
							
								
									1e45f80b22
								
							
						
					
					
						commit
						dd1a8466f5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -452,7 +452,7 @@ def clear(self): | ||||||
|                         del self.data[key] |                         del self.data[key] | ||||||
|                 def pop(self, key, *args): |                 def pop(self, key, *args): | ||||||
|                     unsetenv(key) |                     unsetenv(key) | ||||||
|                     return self.data.pop(key, *args) |                     return self.data.pop(key.upper(), *args) | ||||||
|             def has_key(self, key): |             def has_key(self, key): | ||||||
|                 return key.upper() in self.data |                 return key.upper() in self.data | ||||||
|             def __contains__(self, key): |             def __contains__(self, key): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Georg Brandl
						Georg Brandl