Fix for Python3

In Python3 without universal_newlines set to True
output from Popen was byte-encoded.
master
Paweł Tomak 12 years ago
parent a9061f34d7
commit cee52283d8
  1. 2
      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

Loading…
Cancel
Save