Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Unified Diff: mojo/spy/PRESUBMIT.py

Issue 687793004: mojom: Remove braces from module statements and make them come first. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/external_service.mojom ('k') | mojo/spy/public/spy.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/spy/PRESUBMIT.py
diff --git a/mojo/spy/PRESUBMIT.py b/mojo/spy/PRESUBMIT.py
deleted file mode 100644
index 5090fb8a1dbb607785a89a37f75ae090033b9ed5..0000000000000000000000000000000000000000
--- a/mojo/spy/PRESUBMIT.py
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 2014 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-import os
-import sys
-
-def _CommonChecks(input_api, output_api):
- results = []
- # Importing ui actually brings tvcm into the path.
- import ui
- from tvcm import presubmit_checker
- checker = presubmit_checker.PresubmitChecker(input_api, output_api)
- results += checker.RunChecks()
- return results
-
-def GetPathsToPrepend(input_api):
- return [input_api.PresubmitLocalPath()]
-
-def RunWithPrependedPath(prepended_path, fn, *args):
- old_path = sys.path
-
- try:
- sys.path = prepended_path + old_path
- return fn(*args)
- finally:
- sys.path = old_path
-
-def CheckChangeOnUpload(input_api, output_api):
- def go():
- results = []
- results.extend(_CommonChecks(input_api, output_api))
- return results
- return RunWithPrependedPath(GetPathsToPrepend(input_api), go)
-
-def CheckChangeOnCommit(input_api, output_api):
- def go():
- results = []
- results.extend(_CommonChecks(input_api, output_api))
- return results
- return RunWithPrependedPath(GetPathsToPrepend(input_api), go)
« no previous file with comments | « mojo/shell/external_service.mojom ('k') | mojo/spy/public/spy.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698