diff options
| author | Ben Woosley <[email protected]> | 2019-02-26 02:24:49 -0800 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2019-09-03 14:41:43 -0400 |
| commit | 3d0a82cff8cbb809876e82dbe62d14d2adc07d94 (patch) | |
| tree | f638c9feb2036f61c16b4e54e313f3753919c1d1 | |
| parent | lint: Bump flake8 to 3.7.8 (diff) | |
| download | discoin-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-x | contrib/devtools/copyright_header.py | 2 |
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", |