mirror of
https://github.com/servo/servo.git
synced 2025-06-09 00:53:26 +00:00
Port some code to Python3
This commit is contained in:
parent
f73370088b
commit
a627dde0d0
24 changed files with 1439 additions and 2341 deletions
|
@ -585,7 +585,10 @@ class MachCommands(CommandBase):
|
|||
|
||||
def format(outputs, description, file=sys.stdout):
|
||||
formatted = "%s %s:\n%s" % (len(outputs), description, "\n".join(outputs))
|
||||
file.write(formatted.encode("utf-8"))
|
||||
if file == sys.stdout:
|
||||
file.write(formatted)
|
||||
else:
|
||||
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