提交 4d0a8b70 编写于 作者: L Liangliang He

Fix python3 error in mace-models CI

上级 52a379a2
......@@ -244,8 +244,10 @@ class DeviceWrapper:
stderr=subprocess.PIPE,
stdout=subprocess.PIPE)
out, err = p.communicate()
out = str(out, encoding = 'utf-8')
err = str(err, encoding = 'utf-8')
self.stdout = err + out
six.print_(self.stdout.decode('UTF-8'))
six.print_(self.stdout)
six.print_("Running finished!\n")
elif self.system in [SystemType.android, SystemType.arm_linux]:
self.rm(self.data_dir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册