[Python-checkins] r58675 - python/trunk/Lib/os.py
georg.brandl
python-checkins at python.org
Fri Oct 26 20:30:41 CEST 2007
Author: georg.brandl
Date: Fri Oct 26 20:30:41 2007
New Revision: 58675
Modified:
python/trunk/Lib/os.py
Log:
Fix new pop() method on os.environ on ignorecase-platforms.
Modified: python/trunk/Lib/os.py
==============================================================================
--- python/trunk/Lib/os.py (original)
+++ python/trunk/Lib/os.py Fri Oct 26 20:30:41 2007
@@ -452,7 +452,7 @@
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):
More information about the Python-checkins
mailing list