(self, code)
| 535 | return self.writer.line_to_contents |
| 536 | |
| 537 | def merge_code(self, code): |
| 538 | if DEBUG: |
| 539 | print("merge code ----") |
| 540 | # for d in dir(code): |
| 541 | # if not d.startswith('_'): |
| 542 | # print(d, getattr(code, d)) |
| 543 | line_to_contents = _PyCodeToSource(code, self.memo).build_line_to_contents() |
| 544 | lines = [] |
| 545 | for line, contents in sorted(line_to_contents.items()): |
| 546 | lines.append(line) |
| 547 | self.writer.get_line(line).extend(contents) |
| 548 | if DEBUG: |
| 549 | print("end merge code ----") |
| 550 | return lines |
| 551 | |
| 552 | def disassemble(self): |
| 553 | show_lines = False |
no test coverage detected