1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 15:20:08 +00:00

Fix for Python3

In Python3 without universal_newlines set to True
output from Popen was byte-encoded.
This commit is contained in:
Paweł Tomak 2014-04-18 23:09:38 +02:00
parent a9061f34d7
commit cee52283d8

View file

@ -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