talk/PRESUBMIT: Accept copyright years going back to 2004.
R=henrike@webrtc.org Review URL: https://webrtc-codereview.appspot.com/1956004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4485 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
ccdcbae177
commit
c3d93c6921
@ -56,9 +56,9 @@ DO_NOT_SUBMIT_FILES = [
|
||||
|
||||
def _LicenseHeader(input_api):
|
||||
"""Returns the license header regexp."""
|
||||
# Accept any year number from 2008 to the current year
|
||||
# Accept any year number from start of project to the current year
|
||||
current_year = int(input_api.time.strftime('%Y'))
|
||||
allowed_years = (str(s) for s in reversed(xrange(2008, current_year + 1)))
|
||||
allowed_years = (str(s) for s in reversed(xrange(2004, current_year + 1)))
|
||||
years_re = '(' + '|'.join(allowed_years) + ')'
|
||||
license_header = (
|
||||
r'.*? libjingle\n'
|
||||
|
Loading…
x
Reference in New Issue
Block a user