Merge branch 'master' into python-3.3-to-3.5

This commit is contained in:
rocky
2024-03-15 22:38:54 -04:00
6 changed files with 31 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
# Copyright (c) 2015-2023 by Rocky Bernstein
# Copyright (c) 2015-2024 by Rocky Bernstein
# Copyright (c) 2005 by Dan Pascu <dan@windowmaker.org>
# Copyright (c) 2000-2002 by hartmut Goebel <h.goebel@crazy-compilers.com>
#
@@ -207,7 +207,7 @@ class Scanner2(Scanner):
bytecode = self.build_instructions(co)
if show_asm in ("both", "before"):
print("\n# ---- before tokenization:")
print("\n# ---- disassembly:")
bytecode.disassemble_bytes(
co.co_code,
varnames=co.co_varnames,
@@ -495,7 +495,7 @@ class Scanner2(Scanner):
pass
if show_asm in ("both", "after"):
print("\n# ---- after tokenization:")
print("\n# ---- tokenization:")
for t in new_tokens:
print(t.format(line_prefix=""))
print()