mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
gh-119180: Update the magic number (#119397)
PR #119321 added a comment about the magic number bump but did not actually apply the new magic number.
This commit is contained in:
parent
49c3ade4f3
commit
84be5244de
@ -489,7 +489,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 = (3571).to_bytes(2, 'little') + b'\r\n'
|
||||
MAGIC_NUMBER = (3600).to_bytes(2, 'little') + b'\r\n'
|
||||
|
||||
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c
|
||||
|
||||
|
@ -1271,6 +1271,7 @@ static PYC_MAGIC magic_values[] = {
|
||||
{ 3450, 3499, L"3.11" },
|
||||
{ 3500, 3549, L"3.12" },
|
||||
{ 3550, 3599, L"3.13" },
|
||||
{ 3600, 3649, L"3.14" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user