Make sure that powerline.bindings.zsh is able to work with old zpython

This commit is contained in:
ZyX 2015-01-25 01:24:05 +03:00
parent 8b17a19ebe
commit ab4021a273
1 changed files with 4 additions and 1 deletions

View File

@ -101,7 +101,10 @@ class Environment(object):
return False
environ = getattr(zsh, 'environ', Environment())
if hasattr(getattr(zsh, 'environ', None), '__contains__'):
environ = zsh.environ
else:
environ = Environment()
class ZshPowerline(ShellPowerline):