Skip to content

Commit a01a26d

Browse files
pablogsalDinoV
authored andcommitted
bpo-35224: Bump the pyc magic number by 1 instead of by 10 in last modification (pythonGH-14320)
1 parent 0f1623a commit a01a26d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _write_atomic(path, data, mode=0o666):
266266
# Python 3.8a1 3400 (move frame block handling to compiler #17611)
267267
# Python 3.8a1 3401 (add END_ASYNC_FOR #33041)
268268
# Python 3.8a1 3410 (PEP570 Python Positional-Only Parameters #36540)
269-
# Python 3.8b2 3420 (Reverse evaluation order of key: value in dict
269+
# Python 3.8b2 3411 (Reverse evaluation order of key: value in dict
270270
# comprehensions #35224)
271271
#
272272
# MAGIC must change whenever the bytecode emitted by the compiler may no
@@ -276,7 +276,7 @@ def _write_atomic(path, data, mode=0o666):
276276
# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
277277
# in PC/launcher.c must also be updated.
278278

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

282282
_PYCACHE = '__pycache__'

Python/importlib_external.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)