summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-05-03 15:23:24 (GMT)
committerGuido van Rossum <guido@python.org>1999-05-03 15:23:24 (GMT)
commitb46413f274bb53e4a8104adad117f964c0c6ab6d (patch)
tree19f18323e8ae2615fa393b0869ac53111b6f9c17 /Lib/os.py
parent4437fdf2656c524e2069a0bde1e542b41e31fee9 (diff)
downloadcpython-b46413f274bb53e4a8104adad117f964c0c6ab6d.zip
cpython-b46413f274bb53e4a8104adad117f964c0c6ab6d.tar.gz
cpython-b46413f274bb53e4a8104adad117f964c0c6ab6d.tar.bz2
The case-insensitive _Environ class was lacking a case-insensitive has_key().
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/os.py b/Lib/os.py
index a4d07c9..d4cfff9 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -245,6 +245,8 @@ else:
self.data[key] = item
def __getitem__(self, key):
return self.data[string.upper(key)]
+ def has_key(self, key):
+ return self.data.has_key(string.upper(key))
else: # Where Env Var Names Can Be Mixed Case
class _Environ(UserDict.UserDict):