|
30 | 30 | import argparse |
31 | 31 |
|
32 | 32 | def cleanup_whitespace(string): |
33 | | - return re.sub('\s+', ' ', string.strip()) |
| 33 | + return re.sub(r'\s+', ' ', string.strip()) |
34 | 34 |
|
35 | 35 | ################################################################ |
36 | 36 | # Operating system specific values |
@@ -83,9 +83,9 @@ def patch_compile_output(opsys, line, key, value): |
83 | 83 |
|
84 | 84 | if key in ["COMPILE_ONLY", "COMPILE_LINK"] and value is not None: |
85 | 85 | if value[-1] == '/Fo': |
86 | | - return re.sub('/Fo\s+', '/Fo', line) |
| 86 | + return re.sub(r'/Fo\s+', '/Fo', line) |
87 | 87 | if value[-1] == '/Fe': |
88 | | - return re.sub('/Fe\s+', '/Fe', line) |
| 88 | + return re.sub(r'/Fe\s+', '/Fe', line) |
89 | 89 | return line |
90 | 90 |
|
91 | 91 | ################################################################ |
@@ -181,7 +181,7 @@ def write_makefile(opsys, template, defines, makefile): |
181 | 181 | with open(template) as _template: |
182 | 182 | for line in _template: |
183 | 183 | line = patch_path_separator(opsys, line) |
184 | | - keys = re.findall('@(\w+)@', line) |
| 184 | + keys = re.findall(r'@(\w+)@', line) |
185 | 185 | values = [find_definition(key, defines) for key in keys] |
186 | 186 | for key, value in zip(keys, values): |
187 | 187 | if value is not None: |
|
0 commit comments