]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119180: Update the magic number (#119397)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sat, 25 May 2024 00:32:17 +0000 (17:32 -0700)
committerGitHub <noreply@github.com>
Sat, 25 May 2024 00:32:17 +0000 (17:32 -0700)
PR #119321 added a comment about the magic number bump
but did not actually apply the new magic number.

Lib/importlib/_bootstrap_external.py
PC/launcher.c

index b3abf380a82b11b132a6cdbfc4daee0ad139dbaf..68469863e7f7749b54dd7beb0a56d671dfa97760 100644 (file)
@@ -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
 
index 8e60ab9303cb95e7499b5d839fde3d6738eb2d48..47fafbc3bf6badfe50c4aa0c258f7002bd14e494 100644 (file)
@@ -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 }
 };