summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-04-15 19:19:24 (GMT)
committerGitHub <noreply@github.com>2022-04-15 19:19:24 (GMT)
commitea2ae026078b328ddeab060940568a4d3bf1b417 (patch)
treefba97e66d949767124286ee10bfd64fc56e60a99 /Lib/importlib/_bootstrap_external.py
parent5d421d7342fc0d278c129c05bea7028430e94a4e (diff)
downloadcpython-ea2ae026078b328ddeab060940568a4d3bf1b417.zip
cpython-ea2ae026078b328ddeab060940568a4d3bf1b417.tar.gz
cpython-ea2ae026078b328ddeab060940568a4d3bf1b417.tar.bz2
gh-91276: Make JUMP_IF_TRUE_OR_POP/JUMP_IF_FALSE_OR_POP relative (GH-32215)
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-rw-r--r--Lib/importlib/_bootstrap_external.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index d580e54..4eece8d 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -401,6 +401,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.11a6 3491 (remove JUMP_IF_NOT_EG_MATCH, add CHECK_EG_MATCH,
# add JUMP_BACKWARD_NO_INTERRUPT, make JUMP_NO_INTERRUPT virtual)
# Python 3.11a7 3492 (make POP_JUMP_IF_NONE/NOT_NONE/TRUE/FALSE relative)
+# Python 3.11a7 3493 (Make JUMP_IF_TRUE_OR_POP/JUMP_IF_FALSE_OR_POP relative)
# Python 3.12 will start with magic number 3500
@@ -415,7 +416,8 @@ _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 = (3492).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3493).to_bytes(2, 'little') + b'\r\n'
+
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'