Skip to content

Commit

Permalink
Dance dance the magic dance
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogsal committed Apr 20, 2021
1 parent 65a3272 commit f70048d
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 111 deletions.
3 changes: 2 additions & 1 deletion Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ def _write_atomic(path, data, mode=0o666):
# Python 3.10a6 3434 (PEP 634: Structural Pattern Matching)
# Python 3.10a7 3435 Use instruction offsets (as opposed to byte offsets).
# Python 3.10b1 3436 (Add GEN_START bytecode #43683)
# Python 3.10b1 3437 (Undo making 'annotations' future by default - We like to dance among core devs!)

#
# MAGIC must change whenever the bytecode emitted by the compiler may no
Expand All @@ -358,7 +359,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 = (3436).to_bytes(2, 'little') + b'\r\n'
MAGIC_NUMBER = (3437).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c

_PYCACHE = '__pycache__'
Expand Down
Loading

0 comments on commit f70048d

Please sign in to comment.