mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #25116 - servo:unicode-fuuu, r=jdm
Fix Python Unicode error in './mach filter-intermittents' Fix https://github.com/servo/servo/issues/25062 I’ve reproduced the error on my macbook, and this fixed it.
This commit is contained in:
commit
43b570e4e7
1 changed files with 2 additions and 5 deletions
|
@ -563,12 +563,9 @@ class MachCommands(CommandBase):
|
||||||
else:
|
else:
|
||||||
actual_failures.append(failure["output"])
|
actual_failures.append(failure["output"])
|
||||||
|
|
||||||
def format(outputs, description, file=None):
|
def format(outputs, description, file=sys.stdout):
|
||||||
formatted = "%s %s:\n%s" % (len(outputs), description, "\n".join(outputs))
|
formatted = "%s %s:\n%s" % (len(outputs), description, "\n".join(outputs))
|
||||||
if file:
|
|
||||||
file.write(formatted.encode("utf-8"))
|
file.write(formatted.encode("utf-8"))
|
||||||
else:
|
|
||||||
print(formatted)
|
|
||||||
|
|
||||||
if log_intermittents:
|
if log_intermittents:
|
||||||
with open(log_intermittents, "wb") as file:
|
with open(log_intermittents, "wb") as file:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue