(data)
| 182 | |
| 183 | |
| 184 | def data_to_string(data): |
| 185 | data = data.decode('utf8') |
| 186 | # We have at least one test (test/core/test_utf8.c) that uses a double |
| 187 | # backslash in the C++ source code, in order to represent a single backslash. |
| 188 | # This is because these strings historically were written and read back via |
| 189 | # JSON and a single slash is interpreted as an escape char there. |
| 190 | # Technically this escaping is no longer needed and could be removed |
| 191 | # but in order to maintain compatibility we strip out the double |
| 192 | # slashes here. |
| 193 | data = data.replace('\\\\', '\\') |
| 194 | return data |
| 195 | |
| 196 | |
| 197 | def get_section_strings(module, export_map, section_name): |
no outgoing calls
no test coverage detected