You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Adjust linemap start offset
This commit is contained in:
@@ -68,8 +68,9 @@ def decompile(
|
||||
showgrammar,
|
||||
code_objects = code_objects,
|
||||
is_pypy = is_pypy,
|
||||
first_line = 5+len(sys_version_lines))
|
||||
linemap = [(line_no, deparsed.source_linemap[line_no])
|
||||
)
|
||||
header_count = 1+len(sys_version_lines)
|
||||
linemap = [(line_no, deparsed.source_linemap[line_no]+header_count)
|
||||
for line_no in
|
||||
sorted(deparsed.source_linemap.keys())]
|
||||
mapstream.write("\n\n# %s\n" % linemap)
|
||||
|
Reference in New Issue
Block a user