Kaydet (Commit) b46413f2 authored tarafından Guido van Rossum's avatar Guido van Rossum

The case-insensitive _Environ class was lacking a case-insensitive has_key().

üst 4437fdf2
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment