Skip to content

Commit

Permalink
bpo-38605: bump the magic number for 'annotations' future (#22630)
Browse files Browse the repository at this point in the history
  • Loading branch information
isidentical committed Oct 10, 2020
1 parent 98c4433 commit 22220ae
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 112 deletions.
3 changes: 2 additions & 1 deletion Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ def _write_atomic(path, data, mode=0o666):
# Python 3.9a2 3423 (add IS_OP, CONTAINS_OP and JUMP_IF_NOT_EXC_MATCH bytecodes #39156)
# Python 3.9a2 3424 (simplify bytecodes for *value unpacking)
# Python 3.9a2 3425 (simplify bytecodes for **value unpacking)
# Python 3.10a1 3430 (Make 'annotations' future by default)

#
# MAGIC must change whenever the bytecode emitted by the compiler may no
Expand All @@ -286,7 +287,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 = (3425).to_bytes(2, 'little') + b'\r\n'
MAGIC_NUMBER = (3430).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c

_PYCACHE = '__pycache__'
Expand Down
Loading

0 comments on commit 22220ae

Please sign in to comment.