Yield referenced name for global-referencing instructions in code.
(code)
| 416 | |
| 417 | |
| 418 | def _walk_global_ops(code): |
| 419 | """Yield referenced name for global-referencing instructions in code.""" |
| 420 | for instr in dis.get_instructions(code): |
| 421 | op = instr.opcode |
| 422 | if op in GLOBAL_OPS: |
| 423 | yield instr.argval |
| 424 | |
| 425 | |
| 426 | def _extract_class_dict(cls): |
no outgoing calls
no test coverage detected