cee52283d8f5e18ba962cdb7b0acec2627e647e3

Author
Paweł Tomak <pawel.tomak@gmail.com>
Committer
Paweł Tomak <pawel.tomak@gmail.com>
Date

Message

Fix for Python3

In Python3 without universal_newlines set to True
output from Popen was byte-encoded.

Diff

 1diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py
 2index ef894bff248e37b9175ee4002dc244dafc2cea68..2568414320a79140ab387ad4fe788d8cd78367fd 100644
 3--- a/plugins/git-prompt/gitstatus.py
 4+++ b/plugins/git-prompt/gitstatus.py
 5@@ -16,7 +16,7 @@ symbols = {
 6 }
 7 
 8 output, error = Popen(
 9-    ['git', 'status'], stdout=PIPE, stderr=PIPE).communicate()
10+    ['git', 'status'], stdout=PIPE, stderr=PIPE, universal_newlines=True).communicate()
11 
12 if error:
13     import sys