diff options
author | Mark Shannon <mark@hotpy.org> | 2021-10-09 13:17:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-09 13:17:22 (GMT) |
commit | 5e173f5db17cbb2e3f2139a3c5ccb6b81ac59785 (patch) | |
tree | 8bde965c139173dd95ece180b6d80a2e2066788b /Lib/importlib/_bootstrap_external.py | |
parent | 9fa930dd4859441d36e39ec6db1a6ebdc046d5b1 (diff) | |
download | cpython-5e173f5db17cbb2e3f2139a3c5ccb6b81ac59785.zip cpython-5e173f5db17cbb2e3f2139a3c5ccb6b81ac59785.tar.gz cpython-5e173f5db17cbb2e3f2139a3c5ccb6b81ac59785.tar.bz2 |
Bump MAGIC_NUMBER to reflect change in JUMP_ABSOLUTE semantics. (GH-28829)
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 d624b73..c9692b5 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -363,6 +363,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.11a1 3458 (imported objects now don't use LOAD_METHOD/CALL_METHOD) # Python 3.11a1 3459 (PEP 657: add end line numbers and column offsets for instructions) # Python 3.11a1 3460 (Add co_qualname field to PyCodeObject bpo-44530) +# Python 3.11a1 3461 (JUMP_ABSOLUTE must jump backwards) # # MAGIC must change whenever the bytecode emitted by the compiler may no @@ -372,7 +373,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 = (3460).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3461).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |