(lines)
| 191 | |
| 192 | |
| 193 | def inspect_and_sanitize_code_lines(lines): |
| 194 | tokens_to_remove = STATEMENT_PREFIXES |
| 195 | result = [] |
| 196 | is_print_present = False |
| 197 | for line in lines: |
| 198 | line = remove_from_beginning(tokens_to_remove, line) |
| 199 | if line.startswith("print ") or line.startswith("print("): |
| 200 | is_print_present = True |
| 201 | result.append(line) |
| 202 | return is_print_present, result |
| 203 | |
| 204 | |
| 205 | def convert_to_cells(cell_contents, read_only): |
no test coverage detected