Skip to content

Commit 839e25b

Browse files
committed
share magic number with NONE/NOT_NONE change
1 parent 6c35aa0 commit 839e25b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,7 @@ def _write_atomic(path, data, mode=0o666):
400400
# Python 3.11a6 3490 (remove JUMP_IF_NOT_EXC_MATCH, add CHECK_EXC_MATCH)
401401
# Python 3.11a6 3491 (remove JUMP_IF_NOT_EG_MATCH, add CHECK_EG_MATCH,
402402
# add JUMP_BACKWARD_NO_INTERRUPT, make JUMP_NO_INTERRUPT virtual)
403-
# Python 3.11a7 3492 (make POP_JUMP_IF_NONE/NOT_NONE relative)
404-
# Python 3.11a7 3493 (make POP_JUMP_IF_TRUE/FALSE relative)
403+
# Python 3.11a7 3492 (make POP_JUMP_IF_NONE/NOT_NONE/TRUE/FALSE relative)
405404

406405
# Python 3.12 will start with magic number 3500
407406

@@ -416,7 +415,7 @@ def _write_atomic(path, data, mode=0o666):
416415
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
417416
# in PC/launcher.c must also be updated.
418417

419-
MAGIC_NUMBER = (3493).to_bytes(2, 'little') + b'\r\n'
418+
MAGIC_NUMBER = (3492).to_bytes(2, 'little') + b'\r\n'
420419
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
421420

422421
_PYCACHE = '__pycache__'

0 commit comments

Comments
 (0)