Method
get_disassembly
(self, func, lasti=-1, wrapper=True, **kwargs)
Source from the content-addressed store, hash-verified
| 1484 | |
| 1485 | # Run the tests again, using the file arg instead of print |
| 1486 | def get_disassembly(self, func, lasti=-1, wrapper=True, **kwargs): |
| 1487 | output = io.StringIO() |
| 1488 | if wrapper: |
| 1489 | dis.dis(func, file=output, **kwargs) |
| 1490 | else: |
| 1491 | dis.disassemble(func, lasti, file=output, **kwargs) |
| 1492 | return output.getvalue() |
| 1493 | |
| 1494 | |
| 1495 | if dis.code_info.__doc__ is None: |
Callers
nothing calls this directly
Tested by
no test coverage detected