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

Unified Diff: client/PRESUBMIT.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 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 | « client/LICENSE ('k') | client/README.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « client/LICENSE ('k') | client/README.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698