diff --git a/Client/src/bkr/client/commands/cmd_job_results.py b/Client/src/bkr/client/commands/cmd_job_results.py index 88dd98f23..3ebf40a61 100644 --- a/Client/src/bkr/client/commands/cmd_job_results.py +++ b/Client/src/bkr/client/commands/cmd_job_results.py @@ -138,6 +138,9 @@ def run(self, *args, **kwargs): self.parser.error('JUnit XML format is only available for jobs') response = requests_session.get('jobs/%s.junit.xml' % id) response.raise_for_status() - print(response.content) + str_xml = response.content + if six.PY3: + str_xml = str_xml.decode('utf-8') + print(str_xml) else: raise RuntimeError('Format %s not implemented' % format)