diff options
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r-- | scripts/lib/recipetool/create.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index d2997cc242..8e9ff38db6 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -1166,12 +1166,12 @@ def crunch_license(licfile): | |||
1166 | # Note: these are carefully constructed! | 1166 | # Note: these are carefully constructed! |
1167 | license_title_re = re.compile(r'^#*\(? *(This is )?([Tt]he )?.{0,15} ?[Ll]icen[sc]e( \(.{1,10}\))?\)?[:\.]? ?#*$') | 1167 | license_title_re = re.compile(r'^#*\(? *(This is )?([Tt]he )?.{0,15} ?[Ll]icen[sc]e( \(.{1,10}\))?\)?[:\.]? ?#*$') |
1168 | license_statement_re = re.compile(r'^((This (project|software)|.{1,10}) is( free software)? (released|licen[sc]ed)|(Released|Licen[cs]ed)) under the .{1,10} [Ll]icen[sc]e:?$') | 1168 | license_statement_re = re.compile(r'^((This (project|software)|.{1,10}) is( free software)? (released|licen[sc]ed)|(Released|Licen[cs]ed)) under the .{1,10} [Ll]icen[sc]e:?$') |
1169 | copyright_re = re.compile('^ *[#\*]* *(Modified work |MIT LICENSED )?Copyright ?(\([cC]\))? .*$') | 1169 | copyright_re = re.compile(r'^ *[#\*]* *(Modified work |MIT LICENSED )?Copyright ?(\([cC]\))? .*$') |
1170 | disclaimer_re = re.compile('^ *\*? ?All [Rr]ights [Rr]eserved\.$') | 1170 | disclaimer_re = re.compile(r'^ *\*? ?All [Rr]ights [Rr]eserved\.$') |
1171 | email_re = re.compile('^.*<[\w\.-]*@[\w\.\-]*>$') | 1171 | email_re = re.compile(r'^.*<[\w\.-]*@[\w\.\-]*>$') |
1172 | header_re = re.compile('^(\/\**!?)? ?[\-=\*]* ?(\*\/)?$') | 1172 | header_re = re.compile(r'^(\/\**!?)? ?[\-=\*]* ?(\*\/)?$') |
1173 | tag_re = re.compile('^ *@?\(?([Ll]icense|MIT)\)?$') | 1173 | tag_re = re.compile(r'^ *@?\(?([Ll]icense|MIT)\)?$') |
1174 | url_re = re.compile('^ *[#\*]* *https?:\/\/[\w\.\/\-]+$') | 1174 | url_re = re.compile(r'^ *[#\*]* *https?:\/\/[\w\.\/\-]+$') |
1175 | 1175 | ||
1176 | lictext = [] | 1176 | lictext = [] |
1177 | with open(licfile, 'r', errors='surrogateescape') as f: | 1177 | with open(licfile, 'r', errors='surrogateescape') as f: |