(co)
| 83 | |
| 84 | |
| 85 | def iter_instructions(co): |
| 86 | iter_in = dis.Bytecode(co) |
| 87 | iter_in = list(iter_in) |
| 88 | |
| 89 | bytecode_to_instruction = {} |
| 90 | for instruction in iter_in: |
| 91 | bytecode_to_instruction[instruction.offset] = instruction |
| 92 | |
| 93 | if iter_in: |
| 94 | for instruction in iter_in: |
| 95 | yield instruction |
| 96 | |
| 97 | |
| 98 | def collect_return_info(co, use_func_first_line=False): |
no outgoing calls
no test coverage detected