rename assembly phases and tweak a err msg...

before tokenization -> disassembly
after tokenization -> tokenization
This commit is contained in:
rocky
2024-03-13 21:02:27 -04:00
parent e6ff6033cf
commit 628b18fce7
2 changed files with 3 additions and 3 deletions

View File

@@ -372,7 +372,7 @@ def main(
deparsed_object.f.close()
if PYTHON_VERSION_TRIPLE[:2] != deparsed_object.version[:2]:
sys.stdout.write(
f"\n# skipping running {deparsed_object.f.name}; it is"
f"\n# skipping running {deparsed_object.f.name}; it is "
f"{version_tuple_to_str(deparsed_object.version, end=2)}, "
"and we are "
f"{version_tuple_to_str(PYTHON_VERSION_TRIPLE, end=2)}\n"

View File

@@ -222,7 +222,7 @@ class Scanner37Base(Scanner):
bytecode = self.build_instructions(co)
if show_asm in ("both", "before"):
print("\n# ---- before tokenization:")
print("\n# ---- disassembly:")
self.insts = bytecode.disassemble_bytes(
co.co_code,
varnames=co.co_varnames,
@@ -534,7 +534,7 @@ class Scanner37Base(Scanner):
pass
if show_asm in ("both", "after"):
print("\n# ---- after tokenization:")
print("\n# ---- tokenization:")
for t in tokens:
print(t.format(line_prefix=""))
print()