parent
98b7ed2950
commit
ba33c327f5
|
@ -76,6 +76,14 @@ class Environment(object):
|
|||
except IndexError:
|
||||
return default
|
||||
|
||||
@staticmethod
|
||||
def __contains__(key):
|
||||
try:
|
||||
zsh.getvalue(key)
|
||||
return True
|
||||
except IndexError:
|
||||
return False
|
||||
|
||||
|
||||
environ = Environment()
|
||||
|
||||
|
|
Loading…
Reference in New Issue