mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.10] bpo-45056: Remove trailing unused constants from co_consts (GH-28109) (GH-28125)
(cherry picked from commit 55c4a92fc1)
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
This commit is contained in:
parent
7538fe34d7
commit
d41abe8970
7 changed files with 4672 additions and 4634 deletions
|
|
@ -689,10 +689,7 @@ def get_disassembly(self, func, lasti=-1, wrapper=True, **kwargs):
|
|||
if sys.flags.optimize:
|
||||
code_info_consts = "0: None"
|
||||
else:
|
||||
code_info_consts = (
|
||||
"""0: 'Formatted details of methods, functions, or code.'
|
||||
1: None"""
|
||||
)
|
||||
code_info_consts = "0: 'Formatted details of methods, functions, or code.'"
|
||||
|
||||
code_info_code_info = f"""\
|
||||
Name: code_info
|
||||
|
|
@ -816,7 +813,6 @@ def f(c=c):
|
|||
Constants:
|
||||
0: 0
|
||||
1: 1
|
||||
2: None
|
||||
Names:
|
||||
0: x"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue