Bump magic number. (GH-23245)

This commit is contained in:
Mark Shannon 2020-11-12 10:42:44 +00:00 committed by GitHub
parent fd4ed57674
commit c6409156c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 114 additions and 112 deletions

View file

@ -278,6 +278,7 @@ _code_type = type(_write_atomic.__code__)
# 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)
# Python 3.10a1 3431 (New line number table format -- PEP 626)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
@ -287,7 +288,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 = (3430).to_bytes(2, 'little') + b'\r\n'
MAGIC_NUMBER = (3431).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
_PYCACHE = '__pycache__'