From 6470a6a5a5c0f447b71e1ac2451b6672a84186af Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Wed, 9 Aug 2017 12:07:18 -0400 Subject: Fixing PrintConclusionsDictHumanReadable for dicts loaded from string. json.loads() reads non-ascii filenames to a non-unicode string and an encode step is required before a format. Change-Id: I3145c7aa41e947f78898e73484c3cb1655418689 Reviewed-on: https://pdfium-review.googlesource.com/10410 Reviewed-by: Lei Zhang Commit-Queue: Henrique Nakashima --- testing/tools/safetynet_conclusions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/tools/safetynet_conclusions.py b/testing/tools/safetynet_conclusions.py index 112274e669..0761a91043 100644 --- a/testing/tools/safetynet_conclusions.py +++ b/testing/tools/safetynet_conclusions.py @@ -274,7 +274,7 @@ def PrintConclusionsDictHumanReadable(conclusions_dict, colored, key=None): print '{0} {1:15,d} {2}' .format( color.format('{:+11.4%}'.format(case_dict['ratio'])), case_dict['after'], - case_name) + case_name.encode('utf-8')) # Print totals totals = conclusions_dict['summary'] -- cgit v1.2.3