mirror of https://github.com/python/cpython.git
Fix new pop() method on os.environ on ignorecase-platforms.
This commit is contained in:
parent
1e45f80b22
commit
dd1a8466f5
|
@ -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…
Reference in New Issue