Skip to content

Commit 1bbbe70

Browse files
author
Olli-Pekka Puolitaival
authored
Merge pull request #202 from JuhPuur/fix_report_write_python3
Remove decode call from report content write
2 parents e1a3eea + f231376 commit 1bbbe70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mbed-greentea/mbed_greentea/mbed_greentea_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ def dump_report_to_text_file(filename, content):
983983
"""
984984
try:
985985
with io.open(filename, encoding="utf-8", errors="backslashreplace", mode="w") as f:
986-
f.write(content.decode('utf-8'))
986+
f.write(content)
987987
except IOError as e:
988988
gt_logger.gt_log_err("can't export to '%s', reason:"% filename)
989989
gt_logger.gt_log_err(str(e))

0 commit comments

Comments
 (0)