aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-09-26 13:52:53 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-09-26 23:12:51 +0100
commitcd45258bf387be2c07f35b87737b5e46e27f14b3 (patch)
tree28180c4d0d1767409f474153430e78a11e929a83 /python/servo/build_commands.py
parentab17d31bbf8c6884f858381f3d5b7e62c4de87c6 (diff)
downloadservo-cd45258bf387be2c07f35b87737b5e46e27f14b3.tar.gz
servo-cd45258bf387be2c07f35b87737b5e46e27f14b3.zip
Fix /python/servo code formatting.
(My editor screams at me for flake8 lint errors.)
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py15
1 files changed, 6 insertions, 9 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 3b34e575443..d31b5a64d89 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -1,16 +1,9 @@
from __future__ import print_function, unicode_literals
-import json
-import os
import os.path as path
-import shutil
import subprocess
-import sys
-import tarfile
from time import time
-import urllib
-from mach.registrar import Registrar
from mach.decorators import (
CommandArgument,
CommandProvider,
@@ -19,6 +12,7 @@ from mach.decorators import (
from servo.command_base import CommandBase, cd
+
@CommandProvider
class MachCommands(CommandBase):
@Command('build',
@@ -50,7 +44,9 @@ class MachCommands(CommandBase):
opts += ["-v"]
build_start = time()
- status = subprocess.call(["cargo", "build"] + opts, env=self.build_env())
+ status = subprocess.call(
+ ["cargo", "build"] + opts,
+ env=self.build_env())
elapsed = time() - build_start
print("Build completed in %0.2fs" % elapsed)
@@ -90,7 +86,8 @@ class MachCommands(CommandBase):
opts = []
if jobs is not None:
opts += ["-j", jobs]
- return subprocess.call(["cargo", "test", "--no-run"], env=self.build_env())
+ return subprocess.call(
+ ["cargo", "test", "--no-run"], env=self.build_env())
@Command('clean',
description='Clean the build directory.',