diff options
author | Guido van Rossum <guido@python.org> | 1999-05-03 15:23:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-05-03 15:23:24 (GMT) |
commit | b46413f274bb53e4a8104adad117f964c0c6ab6d (patch) | |
tree | 19f18323e8ae2615fa393b0869ac53111b6f9c17 | |
parent | 4437fdf2656c524e2069a0bde1e542b41e31fee9 (diff) | |
download | cpython-b46413f274bb53e4a8104adad117f964c0c6ab6d.zip cpython-b46413f274bb53e4a8104adad117f964c0c6ab6d.tar.gz cpython-b46413f274bb53e4a8104adad117f964c0c6ab6d.tar.bz2 |
The case-insensitive _Environ class was lacking a case-insensitive has_key().
-rw-r--r-- | Lib/os.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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): |