aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/post_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/post_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/post_build_commands.py')
-rw-r--r--python/servo/post_build_commands.py20
1 files changed, 7 insertions, 13 deletions
diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py
index 276a772c787..b09a3daaa15 100644
--- a/python/servo/post_build_commands.py
+++ b/python/servo/post_build_commands.py
@@ -1,16 +1,8 @@
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,14 +11,16 @@ from mach.decorators import (
from servo.command_base import CommandBase
+
@CommandProvider
class MachCommands(CommandBase):
@Command('run',
description='Run Servo',
category='post-build',
allow_all_args=True)
- @CommandArgument('params', default=None, nargs='...',
- help="Command-line arguments to be passed through to Servo")
+ @CommandArgument(
+ 'params', default=None, nargs='...',
+ help="Command-line arguments to be passed through to Servo")
def run(self, params):
subprocess.check_call([path.join("target", "servo")] + params,
env=self.build_env())
@@ -35,10 +29,10 @@ class MachCommands(CommandBase):
description='Generate documentation',
category='post-build',
allow_all_args=True)
- @CommandArgument('params', default=None, nargs='...',
- help="Command-line arguments to be passed through to cargo doc")
+ @CommandArgument(
+ 'params', default=None, nargs='...',
+ help="Command-line arguments to be passed through to cargo doc")
def doc(self, params):
self.ensure_bootstrapped()
return subprocess.call(["cargo", "doc"] + params,
env=self.build_env())
-