Format all Python scripts
Some Python scripts weren't formatted - particularly scripts with just
the shebang and not the .py suffix. Run:
git ls-tree --full-tree --name-only -r HEAD | xargs grep -l '#!.*python' | xargs yapf -i chromium
to format them.
Change-Id: I68eae3e10496de558b184e9e16aaa1ba12b240e2
diff --git a/tools/check_proto_comments b/tools/check_proto_comments
index 05159ed..244f26e 100755
--- a/tools/check_proto_comments
+++ b/tools/check_proto_comments
@@ -25,6 +25,7 @@
ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+
def main():
errors = 0
# Don't want to check protos/third_party:
@@ -48,9 +49,8 @@
continue
rel_path = os.path.relpath(fpath, ROOT_DIR)
- sys.stderr.write(
- ('Proto file %s has inline comment, please move to ' +
- 'the previous line:\t%s') % (rel_path, line))
+ sys.stderr.write(('Proto file %s has inline comment, please move to ' +
+ 'the previous line:\t%s') % (rel_path, line))
errors += 1
return 0 if errors == 0 else 1