diff --git a/tests/shellcheck-to-junit b/tests/shellcheck-to-junit index 6316db3c621..d006f7fb46c 100755 --- a/tests/shellcheck-to-junit +++ b/tests/shellcheck-to-junit @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import argparse import collections @@ -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():