summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBatuhan Taskaya <batuhanosmantaskaya@gmail.com>2020-10-10 22:19:46 (GMT)
committerGitHub <noreply@github.com>2020-10-10 22:19:46 (GMT)
commit22220ae216b11644b23511c6287a52e7d28aeb9f (patch)
treeb6b3c9e7c276fc4167b66b07ed6fff144012daeb /Lib/importlib
parent98c4433a81a4cd88c7438adbee1f2aa486188ca3 (diff)
downloadcpython-22220ae216b11644b23511c6287a52e7d28aeb9f.zip
cpython-22220ae216b11644b23511c6287a52e7d28aeb9f.tar.gz
cpython-22220ae216b11644b23511c6287a52e7d28aeb9f.tar.bz2
bpo-38605: bump the magic number for 'annotations' future (#22630)
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap_external.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 4f06039..b08ad03 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -277,6 +277,7 @@ _code_type = type(_write_atomic.__code__)
# 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
@@ -286,7 +287,7 @@ _code_type = type(_write_atomic.__code__)
# 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__'