Skip to content

Commit 22220ae

Browse files
authored
bpo-38605: bump the magic number for 'annotations' future (#22630)
1 parent 98c4433 commit 22220ae

File tree

2 files changed

+113
-112
lines changed

2 files changed

+113
-112
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ def _write_atomic(path, data, mode=0o666):
277277
# Python 3.9a2 3423 (add IS_OP, CONTAINS_OP and JUMP_IF_NOT_EXC_MATCH bytecodes #39156)
278278
# Python 3.9a2 3424 (simplify bytecodes for *value unpacking)
279279
# Python 3.9a2 3425 (simplify bytecodes for **value unpacking)
280+
# Python 3.10a1 3430 (Make 'annotations' future by default)
280281

281282
#
282283
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -286,7 +287,7 @@ def _write_atomic(path, data, mode=0o666):
286287
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
287288
# in PC/launcher.c must also be updated.
288289

289-
MAGIC_NUMBER = (3425).to_bytes(2, 'little') + b'\r\n'
290+
MAGIC_NUMBER = (3430).to_bytes(2, 'little') + b'\r\n'
290291
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
291292

292293
_PYCACHE = '__pycache__'

0 commit comments

Comments
 (0)