浏览代码

Fix for Python3

In Python3 without universal_newlines set to True
output from Popen was byte-encoded.
Paweł Tomak 11 年之前
父节点
当前提交
cee52283d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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