bpo-38605: Revert making 'from __future__ import annotations' the default (GH-25490)
This reverts commits044a1048caand1be456ae9d, adapting the code to changes that happened after it.
This commit is contained in:
@@ -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__'
|
||||
|
||||
Reference in New Issue
Block a user