fix: decode bytes to a string
This commit is contained in:
committed by
GitHub
parent
8cff88dea0
commit
96924e54c4
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user