diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-04-01 12:59:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 12:59:38 (GMT) |
commit | 04e07c258f4f2ac85e25355242a113f98a706f04 (patch) | |
tree | 166df77e0d1e0bbaf6c4fcd8b1f3584010cf6c26 /Lib/importlib/_bootstrap_external.py | |
parent | ae9de82e321581e1906c6ef2a7ad83ab30ae3325 (diff) | |
download | cpython-04e07c258f4f2ac85e25355242a113f98a706f04.zip cpython-04e07c258f4f2ac85e25355242a113f98a706f04.tar.gz cpython-04e07c258f4f2ac85e25355242a113f98a706f04.tar.bz2 |
bpo-47186: Replace JUMP_IF_NOT_EXC_MATCH by CHECK_EXC_MATCH + jump (GH-32231)
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 744fefd..39a348a 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -397,6 +397,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.11a6 3487 (Remove the adaptive "oparg counter" mechanism) # Python 3.11a6 3488 (LOAD_GLOBAL can push additional NULL) # Python 3.11a6 3489 (Add JUMP_BACKWARD, remove JUMP_ABSOLUTE) +# Python 3.11a6 3490 (remove JUMP_IF_NOT_EXC_MATCH, add CHECK_EXC_MATCH) # Python 3.12 will start with magic number 3500 @@ -411,7 +412,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 = (3489).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3490).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |