From 0ebed25392a8380cb8be5f068599e6dca1142859 Mon Sep 17 00:00:00 2001 From: Budh Ram Gurung Date: Fri, 16 Jun 2017 22:25:28 +0530 Subject: [PATCH] Fix copyright header boilerplate for year 2017 --- hack/boilerplate/boilerplate.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/boilerplate/boilerplate.py b/hack/boilerplate/boilerplate.py index cd686b3de9..b8d426eb53 100755 --- a/hack/boilerplate/boilerplate.py +++ b/hack/boilerplate/boilerplate.py @@ -89,7 +89,7 @@ def file_passes(filename, refs, regexs): if p.search(d): return False - # Replace all occurrences of the regex "2016|2015|2014" with "YEAR" + # Replace all occurrences of the regex "2017|2016|2015|2014" with "YEAR" p = regexs["date"] for i, d in enumerate(data): (data[i], found) = p.subn('YEAR', d) @@ -149,8 +149,8 @@ def get_regexs(): regexs = {} # Search for "YEAR" which exists in the boilerplate, but shouldn't in the real thing regexs["year"] = re.compile( 'YEAR' ) - # dates can be 2014, 2015 or 2016, company holder names can be anything - regexs["date"] = re.compile( '(2014|2015|2016)' ) + # dates can be 2014, 2015, 2016 or 2017, company holder names can be anything + regexs["date"] = re.compile( '(2014|2015|2016|2017)' ) # strip // +build \n\n build constraints regexs["go_build_constraints"] = re.compile(r"^(// \+build.*\n)+\n", re.MULTILINE) # strip #!.* from shell scripts