|
21 | 21 | ["CPP", re.compile('^(__Z|_+swift)')],
|
22 | 22 |
|
23 | 23 | # Objective-C
|
24 |
| - ["ObjC", re.compile('^[+-]\[')], |
| 24 | + ["ObjC", re.compile(r'^[+-]\[')], |
25 | 25 |
|
26 | 26 | # Swift
|
27 | 27 | ["Partial Apply", re.compile('^__(TPA|T0.*T[aA]$)')],
|
@@ -80,7 +80,7 @@ def read_sizes(sizes, file_name, function_details, group_by_prefix):
|
80 | 80 | architectures = subprocess.check_output(
|
81 | 81 | ["otool", "-V", "-f", file_name]).split("\n")
|
82 | 82 | arch = None
|
83 |
| - arch_pattern = re.compile('architecture ([\S]+)') |
| 83 | + arch_pattern = re.compile(r'architecture ([\S]+)') |
84 | 84 | for architecture in architectures:
|
85 | 85 | arch_match = arch_pattern.match(architecture)
|
86 | 86 | if arch_match:
|
@@ -115,10 +115,10 @@ def read_sizes(sizes, file_name, function_details, group_by_prefix):
|
115 | 115 | start_addr = None
|
116 | 116 | end_addr = None
|
117 | 117 |
|
118 |
| - section_pattern = re.compile(' +sectname ([\S]+)') |
119 |
| - size_pattern = re.compile(' +size ([\da-fx]+)') |
120 |
| - asmline_pattern = re.compile('^([0-9a-fA-F]+)\s') |
121 |
| - label_pattern = re.compile('^((\-*\[[^\]]*\])|[^\/\s]+):$') |
| 118 | + section_pattern = re.compile(r' +sectname ([\S]+)') |
| 119 | + size_pattern = re.compile(r' +size ([\da-fx]+)') |
| 120 | + asmline_pattern = re.compile(r'^([0-9a-fA-F]+)\s') |
| 121 | + label_pattern = re.compile(r'^((\-*\[[^\]]*\])|[^\/\s]+):$') |
122 | 122 |
|
123 | 123 | for line in content:
|
124 | 124 | asmline_match = asmline_pattern.match(line)
|
|
0 commit comments