浏览代码

Merge pull request #2729 from grodzik/master

Fix for Python3
Robby Russell 11 年之前
父节点
当前提交
ee31abfb2d
共有 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