Skip to content

Commit

Permalink
Fix --linemap option, yet again.
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Feb 3, 2024
1 parent db6c715 commit 5f29d14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions uncompyle6/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def write(s):
if isinstance(mapstream, str):
mapstream = _get_outstream(mapstream)

debug_opts = {"asm": showasm, "tree": showast, "grammar": showgrammar}
debug_opts = {"asm": showasm, "tree": showast, "grammar": grammar}

deparsed = deparse_code_with_map(
co=co,
Expand Down Expand Up @@ -347,9 +347,7 @@ def main(
sys.stdout.write(f"\n{str(e)}\n")
if str(e).startswith("Unsupported Python"):
sys.stdout.write("\n")
sys.stderr.write(
f"\n# Unsupported bytecode in file {infile}\n# {e}\n"
)
sys.stderr.write(f"\n# Unsupported bytecode in file {infile}\n# {e}\n")
else:
if outfile:
outstream.close()
Expand Down

0 comments on commit 5f29d14

Please sign in to comment.