https://github.com/python/cpython/commit/84be5244de75c92904fb41326c9a69f19051e7ab
commit: 84be5244de75c92904fb41326c9a69f19051e7ab
branch: main
author: Jelle Zijlstra <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2024-05-24T17:32:17-07:00
summary:

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.

files:
M Lib/importlib/_bootstrap_external.py
M PC/launcher.c

diff --git a/Lib/importlib/_bootstrap_external.py 
b/Lib/importlib/_bootstrap_external.py
index b3abf380a82b11..68469863e7f774 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -489,7 +489,7 @@ def _write_atomic(path, data, mode=0o666):
 # 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 8e60ab9303cb95..47fafbc3bf6bad 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 }
 };
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to