Skip to content

Commit a9bfc0d

Browse files
committed
magic number
1 parent 5e4c199 commit a9bfc0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ def _write_atomic(path, data, mode=0o666):
426426
# Python 3.12a1 3510 (FOR_ITER leaves iterator on the stack)
427427
# Python 3.12a1 3511 (Add STOPITERATION_ERROR instruction)
428428
# Python 3.12a1 3512 (Remove all unused consts from code objects)
429+
# Python 3.12a1 3513 (Optimizer ensures oparg is 0 when !HAS_ARG)
429430

430431
# Python 3.13 will start with 3550
431432

@@ -438,7 +439,7 @@ def _write_atomic(path, data, mode=0o666):
438439
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
439440
# in PC/launcher.c must also be updated.
440441

441-
MAGIC_NUMBER = (3512).to_bytes(2, 'little') + b'\r\n'
442+
MAGIC_NUMBER = (3513).to_bytes(2, 'little') + b'\r\n'
442443

443444
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
444445

0 commit comments

Comments
 (0)