diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-11-11 10:53:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 10:53:43 (GMT) |
commit | 3dd6ee2c0022cb49e5cb8862a569bdd35b6a72bc (patch) | |
tree | 088c87ecddc5a792051c109e1cef49d3ba44d92a /Lib/importlib/_bootstrap_external.py | |
parent | faf7dfa656bd52959156fed39a4c680b2b13e032 (diff) | |
download | cpython-3dd6ee2c0022cb49e5cb8862a569bdd35b6a72bc.zip cpython-3dd6ee2c0022cb49e5cb8862a569bdd35b6a72bc.tar.gz cpython-3dd6ee2c0022cb49e5cb8862a569bdd35b6a72bc.tar.bz2 |
gh-99254: remove all unused consts from code objects (GH-99255)
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 8cbc962..f4dbbeb 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -425,6 +425,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.12a1 3509 (Conditional jumps only jump forward) # Python 3.12a1 3510 (FOR_ITER leaves iterator on the stack) # Python 3.12a1 3511 (Add STOPITERATION_ERROR instruction) +# Python 3.12a1 3512 (Remove all unused consts from code objects) # Python 3.13 will start with 3550 @@ -437,7 +438,7 @@ _code_type = type(_write_atomic.__code__) # Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array # in PC/launcher.c must also be updated. -MAGIC_NUMBER = (3511).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3512).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c |