diff options
author | Paweł Tomak <pawel.tomak@gmail.com> | 2014-04-18 23:09:38 +0200 |
---|---|---|
committer | Paweł Tomak <pawel.tomak@gmail.com> | 2014-04-18 23:09:38 +0200 |
commit | cee52283d8f5e18ba962cdb7b0acec2627e647e3 (patch) | |
tree | 31c1972170457cb48f07db9b8d4f2d5dd033ebd1 /plugins/git-prompt/gitstatus.py | |
parent | a9061f34d7dbb2e65d2c378dcee9402466ab63ae (diff) | |
download | zsh-cee52283d8f5e18ba962cdb7b0acec2627e647e3.tar.gz zsh-cee52283d8f5e18ba962cdb7b0acec2627e647e3.tar.bz2 zsh-cee52283d8f5e18ba962cdb7b0acec2627e647e3.zip |
Fix for Python3
In Python3 without universal_newlines set to True
output from Popen was byte-encoded.
Diffstat (limited to 'plugins/git-prompt/gitstatus.py')
-rw-r--r-- | plugins/git-prompt/gitstatus.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py index ef894bff2..256841432 100644 --- a/plugins/git-prompt/gitstatus.py +++ b/plugins/git-prompt/gitstatus.py @@ -16,7 +16,7 @@ symbols = { } output, error = Popen( - ['git', 'status'], stdout=PIPE, stderr=PIPE).communicate() + ['git', 'status'], stdout=PIPE, stderr=PIPE, universal_newlines=True).communicate() if error: import sys |