mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 13:55:45 +02:00
Make sure that powerline.bindings.zsh is able to work with old zpython
This commit is contained in:
parent
8b17a19ebe
commit
ab4021a273
@ -101,7 +101,10 @@ class Environment(object):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
environ = getattr(zsh, 'environ', Environment())
|
if hasattr(getattr(zsh, 'environ', None), '__contains__'):
|
||||||
|
environ = zsh.environ
|
||||||
|
else:
|
||||||
|
environ = Environment()
|
||||||
|
|
||||||
|
|
||||||
class ZshPowerline(ShellPowerline):
|
class ZshPowerline(ShellPowerline):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user