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

Unified Diff: presubmit_canned_checks.py

Issue 200643002: Presubmit: fix accepted copyright dates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: presubmit_canned_checks.py
diff --git a/presubmit_canned_checks.py b/presubmit_canned_checks.py
index bc8c3934d6a6630e30587d71098eba8b2f54c497..d0376bd79b325a356841b067bc2953a9ec3be97b 100644
--- a/presubmit_canned_checks.py
+++ b/presubmit_canned_checks.py
@@ -956,11 +956,11 @@ def PanProjectChecks(input_api, output_api,
project_name = project_name or 'Chromium'
# Accept any year number from 2006 to the current year, or the special
- # 2006-2008 string used on the oldest files. 2006-2008 is deprecated, but
- # tolerate it until it's removed from all files.
+ # 2006-20xx string used on the oldest files. 2006-20xx is deprecated, but
+ # tolerated on old files.
current_year = int(input_api.time.strftime('%Y'))
allowed_years = (str(s) for s in reversed(xrange(2006, current_year + 1)))
- years_re = '(' + '|'.join(allowed_years) + '|2006-2008)'
+ years_re = '(' + '|'.join(allowed_years) + '|2006-2008|2006-2009|2006-2010)'
# The (c) is deprecated, but tolerate it until it's removed from all files.
license_header = license_header or (
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698