未验证 提交 fcea36f7 编写于 作者: L lq 提交者: GitHub

Let `subprocess.Popen` open outputs in text mode (#629)

Co-authored-by: NQiang Li <qiang.d.li@gmail.com>
上级 a2e879ee
......@@ -243,7 +243,8 @@ class DeviceWrapper:
"--model_file=%s" % mace_model_path,
],
stderr=subprocess.PIPE,
stdout=subprocess.PIPE)
stdout=subprocess.PIPE,
universal_newlines=True)
out, err = p.communicate()
self.stdout = err + out
six.print_(self.stdout)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册