diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2024-05-25 00:32:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-25 00:32:17 (GMT) |
commit | 84be5244de75c92904fb41326c9a69f19051e7ab (patch) | |
tree | 71918a98ba18a88423c56ccbee3826a1077c0a3f | |
parent | 49c3ade4f3ceae2f8fcbe03ebaaad5eddf8de0bf (diff) | |
download | cpython-84be5244de75c92904fb41326c9a69f19051e7ab.zip cpython-84be5244de75c92904fb41326c9a69f19051e7ab.tar.gz cpython-84be5244de75c92904fb41326c9a69f19051e7ab.tar.bz2 |
gh-119180: Update the magic number (#119397)
PR #119321 added a comment about the magic number bump
but did not actually apply the new magic number.
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 2 | ||||
-rw-r--r-- | PC/launcher.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index b3abf38..6846986 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -489,7 +489,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 = (3571).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3600).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c diff --git a/PC/launcher.c b/PC/launcher.c index 8e60ab9..47fafbc 100644 --- a/PC/launcher.c +++ b/PC/launcher.c @@ -1271,6 +1271,7 @@ static PYC_MAGIC magic_values[] = { { 3450, 3499, L"3.11" }, { 3500, 3549, L"3.12" }, { 3550, 3599, L"3.13" }, + { 3600, 3649, L"3.14" }, { 0 } }; |