Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/ide_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def make_include(self, sources, parent_node=None):
IAR sample including nodes
<option>
<name>CCIncludePath2</name>
<state>$PROJ_DIR$\nuttx\include\</state>
<state>$PROJ_DIR$\\nuttx\\include\\</state>
</option>
Args:
sources: list of SourceInfo
Expand Down
2 changes: 1 addition & 1 deletion tools/licensing/apachize.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def apachize(path, header):

with open(path) as f:
s = f.read()
s = re.sub("(?i)/\*\*\*.+?(?:Copyright).+?\*\*\*+/", header, s, 1, re.DOTALL)
s = re.sub(r"(?i)/\*\*\*.+?(?:Copyright).+?\*\*\*+/", header, s, 1, re.DOTALL)
print(s)


Expand Down
6 changes: 3 additions & 3 deletions tools/licensing/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def commit_attributions(c):


def get_headers(s):
return re.findall("(?i)/\*\*\*.+?(?:Copyright).+?\*\*\*+/", s, re.DOTALL)
return re.findall(r"(?i)/\*\*\*.+?(?:Copyright).+?\*\*\*+/", s, re.DOTALL)


def get_file(blob):
Expand Down Expand Up @@ -131,15 +131,15 @@ def author_has_cla(author):

def header_copyrights(header):
results = re.findall(
" \* *[Cc]opyright:?(?: ?.[Cc].)? *(?:[12][0-9]{3}[,-]? ?)* *(.+)", header
r" \* *[Cc]opyright:?(?: ?.[Cc].)? *(?:[12][0-9]{3}[,-]? ?)* *(.+)", header
)
return [re.sub("(. )?[Aa]ll rights reserved.?", "", result) for result in results]


def report_cla(author):
cla = author_has_cla(author)
if cla:
(apacheid, name) = cla
apacheid, name = cla
print(colored("✓", "green"), end=" ")
else:
apacheid = None
Expand Down
Loading