Merge pull request #276 from cruor99/fix-utf8-error-on-output

Fix unicode error introduced in latest macOS
This commit is contained in:
Akshay Arora 2018-07-11 05:57:50 +05:30 committed by GitHub
commit bce521ef9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ def shprint(command, *args, **kwargs):
kwargs["_out_bufsize"] = 1
kwargs["_err_to_out"] = True
for line in command(*args, **kwargs):
stdout.write(line)
stdout.write(line.encode("ascii", "replace").decode())
def cache_execution(f):