aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Woosley <[email protected]>2019-02-26 02:24:49 -0800
committerBen Woosley <[email protected]>2019-09-03 14:41:43 -0400
commit3d0a82cff8cbb809876e82dbe62d14d2adc07d94 (patch)
treef638c9feb2036f61c16b4e54e313f3753919c1d1
parentlint: Bump flake8 to 3.7.8 (diff)
downloaddiscoin-3d0a82cff8cbb809876e82dbe62d14d2adc07d94.tar.xz
discoin-3d0a82cff8cbb809876e82dbe62d14d2adc07d94.zip
devtools: Accomodate block-style copyright blocks
Without this, `copyright_header.py report . verbose` reports: ------------------------------------------------------------------------------- 1 with unexpected copyright holder names ./build_msvc/libsecp256k1_config.h -------------------------------------------------------------------------------
-rwxr-xr-xcontrib/devtools/copyright_header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/devtools/copyright_header.py b/contrib/devtools/copyright_header.py
index f1bd91089..67e77bc63 100755
--- a/contrib/devtools/copyright_header.py
+++ b/contrib/devtools/copyright_header.py
@@ -85,7 +85,7 @@ ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE = ("%s %s" % (ANY_COPYRIGHT_STYLE,
ANY_COPYRIGHT_COMPILED = re.compile(ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE)
def compile_copyright_regex(copyright_style, year_style, name):
- return re.compile('%s %s,? %s\n' % (copyright_style, year_style, name))
+ return re.compile(r'%s %s,? %s( +\*)?\n' % (copyright_style, year_style, name))
EXPECTED_HOLDER_NAMES = [
r"Satoshi Nakamoto",