Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump magic number (fixes crashes in test_importlib and test_scope)
Browse files Browse the repository at this point in the history
iritkatriel committed Jul 24, 2021
1 parent 038c4da commit daf9729
Showing 3 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion Lib/importlib/_bootstrap_external.py
Original file line number Diff line number Diff line change
@@ -372,7 +372,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 = (9994).to_bytes(2, 'little') + b'\r\n'
MAGIC_NUMBER = (9996).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c

_PYCACHE = '__pycache__'
49 changes: 24 additions & 25 deletions Programs/test_frozenmain.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Python/importlib_external.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit daf9729

Please sign in to comment.