summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-04-21 11:41:19 (GMT)
committerGitHub <noreply@github.com>2021-04-21 11:41:19 (GMT)
commitb0544ba77cf86074fb1adde00558c67ca75eeea1 (patch)
tree5168d0dc8da1360feabecfbc7c721b3fa9a38b11 /Lib/importlib/_bootstrap_external.py
parentd35eef3b904b62e9c775bf3764ab0a0611f5a860 (diff)
downloadcpython-b0544ba77cf86074fb1adde00558c67ca75eeea1.zip
cpython-b0544ba77cf86074fb1adde00558c67ca75eeea1.tar.gz
cpython-b0544ba77cf86074fb1adde00558c67ca75eeea1.tar.bz2
bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490)
This reverts commits 044a1048ca93d466965afc027b91a5a9eb9ce23c and 1be456ae9d53bb1cba2b24fc86175c282d1c2169, adapting the code to changes that happened after it.
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-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 66ba7dc..6620b24 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -349,6 +349,7 @@ _code_type = type(_write_atomic.__code__)
# Python 3.10a6 3434 (PEP 634: Structural Pattern Matching)
# Python 3.10a7 3435 Use instruction offsets (as opposed to byte offsets).
# Python 3.10b1 3436 (Add GEN_START bytecode #43683)
+# Python 3.10b1 3437 (Undo making 'annotations' future by default - We like to dance among core devs!)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -358,7 +359,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 = (3436).to_bytes(2, 'little') + b'\r\n'
+MAGIC_NUMBER = (3437).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'