[Python-checkins] bump the bytecode magic number (GH-25225)

markshannon webhook-mailer at python.org
Tue Apr 6 13:44:58 EDT 2021


https://github.com/python/cpython/commit/50616223d1043f0f83534ffec38709439b8a49ab
commit: 50616223d1043f0f83534ffec38709439b8a49ab
branch: master
author: Dennis Sweeney <36520290+sweeneyde at users.noreply.github.com>
committer: markshannon <mark at hotpy.org>
date: 2021-04-06T18:44:50+01:00
summary:

bump the bytecode magic number (GH-25225)

files:
M Lib/importlib/_bootstrap_external.py
M Python/importlib_external.h

diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 34f554a53f262..be11cfe64c7a5 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -325,7 +325,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 = (3435).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3436).to_bytes(2, 'little') + b'\r\n'
 _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little')  # For import.c
 
 _PYCACHE = '__pycache__'
diff --git a/Python/importlib_external.h b/Python/importlib_external.h
index a9a1f4dac2467..62e52395c4ad2 100644
--- a/Python/importlib_external.h
+++ b/Python/importlib_external.h
@@ -315,7 +315,7 @@ const unsigned char _Py_M__importlib_bootstrap_external[] = {
     99,152,0,0,0,115,38,0,0,0,16,5,6,1,22,1,
     4,255,2,2,14,3,24,1,16,128,18,1,12,1,2,1,
     12,1,2,3,12,254,2,1,2,1,2,254,2,253,255,128,
-    114,83,0,0,0,105,107,13,0,0,114,44,0,0,0,114,
+    114,83,0,0,0,105,108,13,0,0,114,44,0,0,0,114,
     32,0,0,0,115,2,0,0,0,13,10,90,11,95,95,112,
     121,99,97,99,104,101,95,95,122,4,111,112,116,45,122,3,
     46,112,121,122,4,46,112,121,119,122,4,46,112,121,99,41,



More information about the Python-checkins mailing list