MCPcopy
hub / github.com/rocky/python-uncompyle6 / inst_fmt

Function inst_fmt

test/dis-compare.py:29–37  ·  view source on GitHub ↗
(inst)

Source from the content-addressed store, hash-verified

27from uncompyle6.disas import disco
28
29def inst_fmt(inst):
30 if inst.starts_line:
31 return '\n%4d %6s\t%-17s %r' % (inst.starts_line, inst.offset, inst.opname,
32 inst.argrepr)
33 else:
34 return ' %6s\t%-17s %r' % (inst.offset, inst.opname, inst.argrepr)
35
36 print
37 return
38
39def compare_ok(version, co):
40 out = StringIO()

Callers 1

compare_okFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected