Made the presubmit script accept license headers back to 2003
BUG=N/A R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/19499004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6176 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
cfdf420e21
commit
508795f088
@ -8,9 +8,9 @@
|
||||
|
||||
def _LicenseHeader(input_api):
|
||||
"""Returns the license header regexp."""
|
||||
# Accept any year number from 2011 to the current year
|
||||
# Accept any year number from 2003 to the current year
|
||||
current_year = int(input_api.time.strftime('%Y'))
|
||||
allowed_years = (str(s) for s in reversed(xrange(2011, current_year + 1)))
|
||||
allowed_years = (str(s) for s in reversed(xrange(2003, current_year + 1)))
|
||||
years_re = '(' + '|'.join(allowed_years) + ')'
|
||||
license_header = (
|
||||
r'.*? Copyright \(c\) %(year)s The WebRTC project authors\. '
|
||||
|
Loading…
x
Reference in New Issue
Block a user