Skip to content

Commit c368ce7

Browse files
bpo-27129: Update magic numbers and bootstrapping for GH-25069 (GH-25172)
* Update magic numbers and bootstrapping for GH-25069 * add blurb Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent 3caea9a commit c368ce7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def _write_atomic(path, data, mode=0o666):
324324
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
325325
# in PC/launcher.c must also be updated.
326326

327-
MAGIC_NUMBER = (3434).to_bytes(2, 'little') + b'\r\n'
327+
MAGIC_NUMBER = (3435).to_bytes(2, 'little') + b'\r\n'
328328
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
329329

330330
_PYCACHE = '__pycache__'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update CPython bytecode magic number.

Python/importlib_external.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)