Browse Source

Fix for Python3

In Python3 without universal_newlines set to True
output from Popen was byte-encoded.
Paweł Tomak 11 years ago
parent
commit
cee52283d8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/git-prompt/gitstatus.py

+ 1 - 1
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