From 96924e54c493ab55b91578c7ddb24ffdf1a0858c Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 30 Sep 2021 01:25:05 -0400 Subject: [PATCH] fix: decode bytes to a string --- tests/shellcheck-to-junit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shellcheck-to-junit b/tests/shellcheck-to-junit index e3d9234fc..d006f7fb4 100755 --- a/tests/shellcheck-to-junit +++ b/tests/shellcheck-to-junit @@ -158,7 +158,7 @@ def output_junit(files, args): content = ElementTree.tostring(root, encoding='UTF-8', method='xml') if args.output: with open(args.output, 'w') as f: - f.write(content) + f.write(content.decode("utf-8")) def main():