| Index: client/PRESUBMIT.py
|
| diff --git a/client/PRESUBMIT.py b/client/PRESUBMIT.py
|
| index 162fb2ca130eeb60add62676549479be8e3fca39..912398b620488f771f4ece01596bd60c701bf819 100644
|
| --- a/client/PRESUBMIT.py
|
| +++ b/client/PRESUBMIT.py
|
| @@ -1,6 +1,6 @@
|
| -# Copyright 2012 The Swarming Authors. All rights reserved.
|
| -# Use of this source code is governed under the Apache License, Version 2.0 that
|
| -# can be found in the LICENSE file.
|
| +# Copyright 2012 The LUCI Authors. All rights reserved.
|
| +# Use of this source code is governed by the Apache v2.0 license that can be
|
| +# found in the LICENSE file.
|
|
|
| """Top-level presubmit script for swarm_client.
|
|
|
| @@ -49,31 +49,9 @@ def CommonChecks(input_api, output_api):
|
| return output
|
|
|
|
|
| -def header(input_api):
|
| - """Returns the expected license header regexp for this project."""
|
| - current_year = int(input_api.time.strftime('%Y'))
|
| - allowed_years = (str(s) for s in reversed(xrange(2011, current_year + 1)))
|
| - years_re = '(' + '|'.join(allowed_years) + ')'
|
| - license_header = (
|
| - r'.*? Copyright %(year)s The Swarming Authors\. '
|
| - r'All rights reserved\.\n'
|
| - r'.*? Use of this source code is governed under the Apache License, '
|
| - r'Version 2\.0 that\n'
|
| - r'.*? can be found in the LICENSE file\.(?: \*/)?\n'
|
| - ) % {
|
| - 'year': years_re,
|
| - }
|
| - return license_header
|
| -
|
| -
|
| def CheckChangeOnUpload(input_api, output_api):
|
| return CommonChecks(input_api, output_api)
|
|
|
|
|
| def CheckChangeOnCommit(input_api, output_api):
|
| - output = CommonChecks(input_api, output_api)
|
| - output.extend(input_api.canned_checks.PanProjectChecks(
|
| - input_api, output_api,
|
| - owners_check=False,
|
| - license_header=header(input_api)))
|
| - return output
|
| + return CommonChecks(input_api, output_api)
|
|
|