Skip to content
Permalink
Browse files

bpo-35224: Bump the pyc magic number by 1 instead of by 10 in last mo…

…dification (pythonGH-14320)
  • Loading branch information...
pablogsal authored and lisroach committed Jun 23, 2019
1 parent 7b8d679 commit 504631b61783cbe8970eca9db6126b44e2d81658
Showing with 3 additions and 3 deletions.
  1. +2 −2 Lib/importlib/_bootstrap_external.py
  2. +1 −1 Python/importlib_external.h
@@ -266,7 +266,7 @@ def _write_atomic(path, data, mode=0o666):
# Python 3.8a1 3400 (move frame block handling to compiler #17611)
# Python 3.8a1 3401 (add END_ASYNC_FOR #33041)
# Python 3.8a1 3410 (PEP570 Python Positional-Only Parameters #36540)
# Python 3.8b2 3420 (Reverse evaluation order of key: value in dict
# Python 3.8b2 3411 (Reverse evaluation order of key: value in dict
# comprehensions #35224)
#
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -276,7 +276,7 @@ def _write_atomic(path, data, mode=0o666):
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
# in PC/launcher.c must also be updated.

MAGIC_NUMBER = (3420).to_bytes(2, 'little') + b'\r\n'
MAGIC_NUMBER = (3411).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c

_PYCACHE = '__pycache__'

Some generated files are not rendered by default. Learn more.

0 comments on commit 504631b

Please sign in to comment.
You can’t perform that action at this time.