summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-26 18:30:41 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-26 18:30:41 (GMT)
commitdd1a8466f522f5e4ba656425b51398fe52e4700f (patch)
tree1730b9dd755397fe350d014c6295cd15345ffb40 /Lib/os.py
parent1e45f80b2273ceed882bb16016140746eb3e7d03 (diff)
downloadcpython-dd1a8466f522f5e4ba656425b51398fe52e4700f.zip
cpython-dd1a8466f522f5e4ba656425b51398fe52e4700f.tar.gz
cpython-dd1a8466f522f5e4ba656425b51398fe52e4700f.tar.bz2
Fix new pop() method on os.environ on ignorecase-platforms.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index ccc11f4..9993a07 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -452,7 +452,7 @@ else:
del self.data[key]
def pop(self, key, *args):
unsetenv(key)
- return self.data.pop(key, *args)
+ return self.data.pop(key.upper(), *args)
def has_key(self, key):
return key.upper() in self.data
def __contains__(self, key):