Skip to content

Commit 628b18f

Browse files
committed
rename assembly phases and tweak a err msg...
before tokenization -> disassembly after tokenization -> tokenization
1 parent e6ff603 commit 628b18f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

uncompyle6/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ def main(
372372
deparsed_object.f.close()
373373
if PYTHON_VERSION_TRIPLE[:2] != deparsed_object.version[:2]:
374374
sys.stdout.write(
375-
f"\n# skipping running {deparsed_object.f.name}; it is"
375+
f"\n# skipping running {deparsed_object.f.name}; it is "
376376
f"{version_tuple_to_str(deparsed_object.version, end=2)}, "
377377
"and we are "
378378
f"{version_tuple_to_str(PYTHON_VERSION_TRIPLE, end=2)}\n"

uncompyle6/scanners/scanner37base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def tokens_append(j, token):
222222
bytecode = self.build_instructions(co)
223223

224224
if show_asm in ("both", "before"):
225-
print("\n# ---- before tokenization:")
225+
print("\n# ---- disassembly:")
226226
self.insts = bytecode.disassemble_bytes(
227227
co.co_code,
228228
varnames=co.co_varnames,
@@ -534,7 +534,7 @@ def tokens_append(j, token):
534534
pass
535535

536536
if show_asm in ("both", "after"):
537-
print("\n# ---- after tokenization:")
537+
print("\n# ---- tokenization:")
538538
for t in tokens:
539539
print(t.format(line_prefix=""))
540540
print()

0 commit comments

Comments
 (0)