From bec420875ea5c64a9c4fa1269ada2a856b3d5ab7 Mon Sep 17 00:00:00 2001 From: Christoph Blecker Date: Mon, 1 Jan 2018 22:57:59 -0800 Subject: [PATCH] Update boilerplate for 2018 --- 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 a5205f47002..9ff1d776da3 100755 --- a/hack/boilerplate/boilerplate.py +++ b/hack/boilerplate/boilerplate.py @@ -107,7 +107,7 @@ def file_passes(filename, refs, regexs): print('File %s is missing the year' % filename, file=verbose_out) return False - # Replace all occurrences of the regex "2017|2016|2015|2014" with "YEAR" + # Replace all occurrences of the regex "2014|2015|2016|2017|2018" with "YEAR" p = regexs["date"] for i, d in enumerate(data): (data[i], found) = p.subn('YEAR', d) @@ -175,8 +175,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, 2016, or 2017; company holder names can be anything - regexs["date"] = re.compile( '(2014|2015|2016|2017)' ) + # dates can be 2014, 2015, 2016, 2017, or 2018; company holder names can be anything + regexs["date"] = re.compile( '(2014|2015|2016|2017|2018)' ) # strip // +build \n\n build constraints regexs["go_build_constraints"] = re.compile(r"^(// \+build.*\n)+\n", re.MULTILINE) # strip #!.* from shell scripts