commit | b46413f274bb53e4a8104adad117f964c0c6ab6d | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon May 03 15:23:24 1999 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon May 03 15:23:24 1999 +0000 |
tree | 19f18323e8ae2615fa393b0869ac53111b6f9c17 | |
parent | 4437fdf2656c524e2069a0bde1e542b41e31fee9 [diff] |
The case-insensitive _Environ class was lacking a case-insensitive has_key().
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 @@ 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):