mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Bump magic number. (GH-23245)
This commit is contained in:
parent
fd4ed57674
commit
c6409156c4
3 changed files with 114 additions and 112 deletions
|
@ -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__'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue