mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +01:00
Fix Python Unicode error in './mach filter-intermittents'
Fix https://github.com/servo/servo/issues/25062
This commit is contained in:
parent
5cc68f5075
commit
7282839cf7
1 changed files with 2 additions and 5 deletions
|
@ -563,12 +563,9 @@ class MachCommands(CommandBase):
|
|||
else:
|
||||
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))
|
||||
if file:
|
||||
file.write(formatted.encode("utf-8"))
|
||||
else:
|
||||
print(formatted)
|
||||
file.write(formatted.encode("utf-8"))
|
||||
|
||||
if log_intermittents:
|
||||
with open(log_intermittents, "wb") as file:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue