[foozzie] Fix Python2 encoding
This fixes a bug when an encoded character appears in the difference string. Python3 doesn't require any encoding. TBR=tmrts@chromium.org No-Try: true Bug: chromium:1095964 Change-Id: I49c66b5b9c105ad64d3a7839d0eb5df97ff5f404 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2249660 Reviewed-by: Michael Achenbach <machenbach@chromium.org> Commit-Queue: Michael Achenbach <machenbach@chromium.org> Cr-Commit-Position: refs/heads/master@{#68384}
This commit is contained in:
parent
b204abb914
commit
d1a02d23ec
@ -311,6 +311,7 @@ def print_difference(
|
||||
else:
|
||||
first_stdout = first_config_output.stdout.decode('utf-8', 'replace')
|
||||
second_stdout = second_config_output.stdout.decode('utf-8', 'replace')
|
||||
difference = difference.decode('utf-8', 'replace')
|
||||
|
||||
text = (FAILURE_TEMPLATE % dict(
|
||||
configs='%s:%s' % (first_config_label, second_config_label),
|
||||
|
Loading…
Reference in New Issue
Block a user