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