MCPcopy Index your code
hub / github.com/rocky/python-uncompyle6 / deparse_code_around_offset

Function deparse_code_around_offset

uncompyle6/semantics/fragments.py:2224–2236  ·  view source on GitHub ↗
(
    name,
    offset,
    version,
    co,
    out=StringIO(),
    showasm=False,
    showast=False,
    showgrammar=PARSER_DEFAULT_DEBUG,
    is_pypy=False,
)

Source from the content-addressed store, hash-verified

2222
2223# Deprecated. Here still for compatibility
2224def deparse_code_around_offset(
2225 name,
2226 offset,
2227 version,
2228 co,
2229 out=StringIO(),
2230 showasm=False,
2231 showast=False,
2232 showgrammar=PARSER_DEFAULT_DEBUG,
2233 is_pypy=False,
2234):
2235 debug_opts = {"asm": showasm, "ast": showast, "grammar": showgrammar}
2236 return code_deparse(name, offset, co, out, version, is_pypy, debug_opts)
2237
2238
2239def op_at_code_loc(code, loc, opc):

Callers

nothing calls this directly

Calls 2

StringIOClass · 0.85
code_deparseFunction · 0.70

Tested by

no test coverage detected