mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-07 06:08:39 +02:00
Fix for Python3
In Python3 without universal_newlines set to True output from Popen was byte-encoded.
This commit is contained in:
parent
9eeaadbcbb
commit
f0dcfa8ffd
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ symbols = {
|
||||||
}
|
}
|
||||||
|
|
||||||
output, error = Popen(
|
output, error = Popen(
|
||||||
['git', 'status'], stdout=PIPE, stderr=PIPE).communicate()
|
['git', 'status'], stdout=PIPE, stderr=PIPE, universal_newlines=True).communicate()
|
||||||
|
|
||||||
if error:
|
if error:
|
||||||
import sys
|
import sys
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue