You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Add fragment rules for RAISE_VARARGS and ...
Fix a fragment offset-sorting bug
This commit is contained in:
@@ -200,7 +200,7 @@ def main(in_base, out_base, files, codes, outfile=None,
|
||||
for d in deparsed:
|
||||
last_mod = None
|
||||
offsets = d.offsets
|
||||
for e in sorted(offsets.keys()):
|
||||
for e in sorted([k for k in offsets.keys() if isinstance(k[1], int)]):
|
||||
if e[0] != last_mod:
|
||||
line = '=' * len(e[0])
|
||||
outstream.write("%s\n%s\n%s\n" % (line, e[0], line))
|
||||
|
Reference in New Issue
Block a user