Skip to content
Merged
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
8 changes: 4 additions & 4 deletions FreeRTOS/Test/CBMC/proofs/make_common_makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import argparse

def cleanup_whitespace(string):
return re.sub('\s+', ' ', string.strip())
return re.sub(r'\s+', ' ', string.strip())

################################################################
# Operating system specific values
Expand Down Expand Up @@ -83,9 +83,9 @@ def patch_compile_output(opsys, line, key, value):

if key in ["COMPILE_ONLY", "COMPILE_LINK"] and value is not None:
if value[-1] == '/Fo':
return re.sub('/Fo\s+', '/Fo', line)
return re.sub(r'/Fo\s+', '/Fo', line)
if value[-1] == '/Fe':
return re.sub('/Fe\s+', '/Fe', line)
return re.sub(r'/Fe\s+', '/Fe', line)
return line

################################################################
Expand Down Expand Up @@ -181,7 +181,7 @@ def write_makefile(opsys, template, defines, makefile):
with open(template) as _template:
for line in _template:
line = patch_path_separator(opsys, line)
keys = re.findall('@(\w+)@', line)
keys = re.findall(r'@(\w+)@', line)
values = [find_definition(key, defines) for key in keys]
for key, value in zip(keys, values):
if value is not None:
Expand Down
2 changes: 1 addition & 1 deletion FreeRTOS/Test/CBMC/proofs/make_proof_makefiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def prolog():

On Windows ->

H_INC = /Imy\cool\directory
H_INC = /Imy\\cool\\directory
H_DEF = /DHALF=/2

When invoked, this script walks the directory tree looking for files
Expand Down
Loading