Chromium Code Reviews| Index: PRESUBMIT.py |
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py |
| index aa79141a90fa5217e6f29f1b7646c0744a21ffd5..c62357252280aace52744ce8d4ffa7c33632e181 100644 |
| --- a/PRESUBMIT.py |
| +++ b/PRESUBMIT.py |
| @@ -8,10 +8,6 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts |
| for more details about the presubmit API built into gcl. |
| """ |
|
M-A Ruel
2012/02/08 14:30:39
Let's remove changes to this file from this CL. I'
Tyler Breisacher (Chromium)
2012/02/08 18:43:41
Done.
|
| - |
| -import re |
| - |
| - |
| _EXCLUDED_PATHS = ( |
| r"^breakpad[\\\/].*", |
| r"^native_client_sdk[\\\/].*", |
| @@ -30,7 +26,6 @@ _TEST_ONLY_WARNING = ( |
| 'Email joi@chromium.org if you have questions.') |
| - |
| def _CheckNoInterfacesInBase(input_api, output_api): |
| """Checks to make sure no files in libbase.a have |@interface|.""" |
| pattern = input_api.re.compile(r'^\s*@interface', input_api.re.MULTILINE) |
| @@ -340,6 +335,7 @@ def GetPreferredTrySlaves(project, change): |
| return ['mac_rel'] |
| preferred = ['win_rel', 'linux_rel', 'mac_rel'] |
| aura_re = '_aura[^/]*[.][^/]*' |
| - if any(re.search(aura_re, f.LocalPath()) for f in change.AffectedFiles()): |
| + if any(input_api.re.search(aura_re, f.LocalPath()) |
| + for f in change.AffectedFiles()): |
| preferred.append('linux_chromeos') |
| return preferred |