aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorDeokjin Kim <deokjin81.kim@samsung.com>2015-01-20 11:02:41 +0900
committerDeokjin Kim <deokjin81.kim@samsung.com>2015-01-20 11:02:41 +0900
commitee0ce0d8f4eecede189ee85cf51a64519ffa5c80 (patch)
treed563b117f264b305d5288caa00f4010f127e7c58 /python
parent80a6f0ae0880914f972b24a11216eed25d873576 (diff)
parentccf5f96fa91540ca73cfb24dd130d5124975fc6e (diff)
downloadservo-ee0ce0d8f4eecede189ee85cf51a64519ffa5c80.tar.gz
servo-ee0ce0d8f4eecede189ee85cf51a64519ffa5c80.zip
Merge branch 'master' of https://github.com/servo/servo into font_style
Diffstat (limited to 'python')
-rw-r--r--python/servo/build_commands.py5
-rw-r--r--python/tidy.py9
2 files changed, 9 insertions, 5 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index aafaa815af1..78d9fb51318 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -64,10 +64,7 @@ class MachCommands(CommandBase):
with cd(path.join(apk_builder_dir, "apk-builder")):
subprocess.call(["cargo", "build"], env=self.build_env())
- # FIXME: This can be simplified when glutin becomes the default
- # and glfw has been removed.
- opts += ["--target", "arm-linux-androideabi", "--no-default-features"]
- features += ["glutin"]
+ opts += ["--target", "arm-linux-androideabi"]
if debug_mozjs or self.config["build"]["debug-mozjs"]:
features += ["script/debugmozjs"]
diff --git a/python/tidy.py b/python/tidy.py
index da930eea333..fc282aaa464 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -56,6 +56,13 @@ def check_license(contents):
yield (1, "incorrect license")
+def check_length(contents):
+ lines = contents.splitlines(True)
+ for idx, line in enumerate(lines):
+ if len(line) >= 160:
+ yield (idx + 1, "(much) overlong line")
+
+
def check_whitespace(contents):
lines = contents.splitlines(True)
for idx, line in enumerate(lines):
@@ -88,7 +95,7 @@ def scan():
all_files = collect_file_names(directories_to_check)
files_to_check = filter(should_check, all_files)
- checking_functions = [check_license, check_whitespace]
+ checking_functions = [check_license, check_length, check_whitespace]
errors = collect_errors_for_files(files_to_check, checking_functions)
errors = list(errors)