]> granicus.if.org Git - python/commitdiff
Fix new pop() method on os.environ on ignorecase-platforms.
authorGeorg Brandl <georg@python.org>
Fri, 26 Oct 2007 18:30:41 +0000 (18:30 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 26 Oct 2007 18:30:41 +0000 (18:30 +0000)
Lib/os.py

index ccc11f49de445f7c87411996da7e0ea9fa9b17fc..9993a07f6e6d873b5f17da510a6727da9ecc44df 100644 (file)
--- 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):