提交 37810813 编写于 作者: 李寅

Merge branch 'fix-python3' into 'master'

Fix python3 error in mace-models CI

See merge request !1097
......@@ -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.
先完成此消息的编辑!
想要评论请 注册