Commit 42a9e648 authored by Zixian Cai's avatar Zixian Cai

Decode bytes to str

parent 5b6ed07c
......@@ -69,9 +69,9 @@ def run_in_subproc(cmd, env=None, **kwds):
if settings.REDIRECT_SUBPROC:
print('---------------- stdout ----------------')
print(so)
print(str(so, encoding='utf-8'))
print('---------------- stderr ----------------')
print(se)
print(str(se, encoding='utf=8'))
res = SimpleNamespace(stdout=str(so, encoding='utf-8'),
stderr=str(se, encoding='utf=8'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment