2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00
This commit is contained in:
whitequark 2018-05-05 03:00:30 +00:00
parent fd2b8d5f8f
commit 917a4185eb

View File

@ -33,9 +33,9 @@ class RunTool:
stdout, stderr = process.communicate()
if process.returncode != 0:
raise Exception("{} invocation failed: {}".
format(cmdline[0], stderr.decode('utf-8')))
format(cmdline[0], stderr))
self._tempfiles["__stdout__"] = io.StringIO(stdout.decode('utf-8'))
self._tempfiles["__stdout__"] = io.StringIO(stdout)
for key in self._tempdata:
if self._tempdata[key] is None:
self._tempfiles[key] = open(self._tempnames[key], "rb")