aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-06-03 20:29:13 -0400
committerCorey Farwell <coreyf@rwell.org>2015-06-04 11:17:34 -0400
commit848c57653ce1b023a324fb9442059228f5372188 (patch)
treeb7ca6475822fcc2220bfb3d5f76b8d6f5775b957 /python/servo/build_commands.py
parent907c051bd1d59621449a399ccf6845b617bdff9d (diff)
downloadservo-848c57653ce1b023a324fb9442059228f5372188.tar.gz
servo-848c57653ce1b023a324fb9442059228f5372188.zip
Add flake8 to the tidy process for Python files
Fixes #6236 Also included in this commit are the changes need to make flake8 pass for the existing python file
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index a0ff559ee54..6167431ac61 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -58,13 +58,14 @@ def notify_win(title, text):
FLASHW_TIMERNOFG = 0x0C
params = FLASHWINDOW(sizeof(FLASHWINDOW),
- windll.kernel32.GetConsoleWindow(),
- FLASHW_CAPTION | FLASHW_TRAY | FLASHW_TIMERNOFG, 3, 0)
+ windll.kernel32.GetConsoleWindow(),
+ FLASHW_CAPTION | FLASHW_TRAY | FLASHW_TIMERNOFG, 3, 0)
FlashWindowEx(params)
def notify_darwin(title, text):
- import Foundation, objc
+ import Foundation
+ import objc
NSUserNotification = objc.lookUpClass("NSUserNotification")
NSUserNotificationCenter = objc.lookUpClass("NSUserNotificationCenter")
@@ -291,7 +292,7 @@ class MachCommands(CommandBase):
opts += ["--release"]
opts += ["--target", "arm-linux-androideabi"]
- env=self.build_env(gonk=True)
+ env = self.build_env(gonk=True)
build_start = time()
with cd(path.join("ports", "gonk")):
ret = subprocess.call(["cargo", "build"] + opts, env=env)
@@ -304,7 +305,6 @@ class MachCommands(CommandBase):
return ret
-
@Command('build-tests',
description='Build the Servo test suites',
category='build')
@@ -329,7 +329,6 @@ class MachCommands(CommandBase):
@CommandArgument('--verbose', '-v',
action='store_true',
help='Print verbose output')
-
@CommandArgument('params', nargs='...',
help="Command-line arguments to be passed through to Cargo")
def clean(self, manifest_path, params, verbose=False):