@@ -71,7 +71,7 @@ def get_filenames_to_examine(base_directory):
71
71
################################################################################
72
72
73
73
74
- COPYRIGHT_WITH_C = 'Copyright \(c\)'
74
+ COPYRIGHT_WITH_C = r 'Copyright \(c\)'
75
75
COPYRIGHT_WITHOUT_C = 'Copyright'
76
76
ANY_COPYRIGHT_STYLE = '(%s|%s)' % (COPYRIGHT_WITH_C , COPYRIGHT_WITHOUT_C )
77
77
@@ -85,21 +85,21 @@ def get_filenames_to_examine(base_directory):
85
85
ANY_COPYRIGHT_COMPILED = re .compile (ANY_COPYRIGHT_STYLE_OR_YEAR_STYLE )
86
86
87
87
def compile_copyright_regex (copyright_style , year_style , name ):
88
- return re .compile ('%s %s,? %s' % (copyright_style , year_style , name ))
88
+ return re .compile ('%s %s,? %s\n ' % (copyright_style , year_style , name ))
89
89
90
90
EXPECTED_HOLDER_NAMES = [
91
- "Satoshi Nakamoto\n " ,
92
- "The Bitcoin Core developers\n " ,
93
- "BitPay Inc\.\n " ,
94
- "University of Illinois at Urbana-Champaign\.\n " ,
95
- "Pieter Wuille\n " ,
96
- "Wladimir J. van der Laan\n " ,
97
- "Jeff Garzik\n " ,
98
- "Jan-Klaas Kollhof\n " ,
99
- "ArtForz -- public domain half-a-node\n " ,
100
- "Intel Corporation" ,
101
- "The Zcash developers" ,
102
- "Jeremy Rubin" ,
91
+ r "Satoshi Nakamoto" ,
92
+ r "The Bitcoin Core developers" ,
93
+ r "BitPay Inc\." ,
94
+ r "University of Illinois at Urbana-Champaign\." ,
95
+ r "Pieter Wuille" ,
96
+ r "Wladimir J\ . van der Laan" ,
97
+ r "Jeff Garzik" ,
98
+ r "Jan-Klaas Kollhof" ,
99
+ r "ArtForz -- public domain half-a-node" ,
100
+ r "Intel Corporation ? " ,
101
+ r "The Zcash developers" ,
102
+ r "Jeremy Rubin" ,
103
103
]
104
104
105
105
DOMINANT_STYLE_COMPILED = {}
@@ -329,7 +329,7 @@ def write_file_lines(filename, file_lines):
329
329
# update header years execution
330
330
################################################################################
331
331
332
- COPYRIGHT = 'Copyright \(c\)'
332
+ COPYRIGHT = r 'Copyright \(c\)'
333
333
YEAR = "20[0-9][0-9]"
334
334
YEAR_RANGE = '(%s)(-%s)?' % (YEAR , YEAR )
335
335
HOLDER = 'The Bitcoin Core developers'
0 commit comments