Fix unicode error introduced in latest macOS

This commit is contained in:
Cruor99 2017-12-10 15:56:08 +01:00
parent 822c712956
commit ac5c67e748

View file

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