diff options
author | Yury Selivanov <yury@magic.io> | 2017-10-06 14:18:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-06 14:18:10 (GMT) |
commit | 02e82a0596121e7b6fcd1142b60c744e8e254d41 (patch) | |
tree | cce897774a179ac0857e0a2e39a1273acb695953 /Lib/importlib | |
parent | a51b90a31399a8826e590da8e327bd65dd29e5a4 (diff) | |
download | cpython-02e82a0596121e7b6fcd1142b60c744e8e254d41.zip cpython-02e82a0596121e7b6fcd1142b60c744e8e254d41.tar.gz cpython-02e82a0596121e7b6fcd1142b60c744e8e254d41.tar.bz2 |
bpo-31709: Update importlib magic (#3906)
Diffstat (limited to 'Lib/importlib')
-rw-r--r-- | Lib/importlib/_bootstrap_external.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index e9f870b..41de8a7 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -241,6 +241,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.6b2 3378 (add BUILD_TUPLE_UNPACK_WITH_CALL #28257) # Python 3.6rc1 3379 (more thorough __class__ validation #23722) # Python 3.7a0 3390 (add LOAD_METHOD and CALL_METHOD opcodes) +# Python 3.7a0 3391 (update GET_AITER #31709) # # MAGIC must change whenever the bytecode emitted by the compiler may no # longer be understood by older implementations of the eval loop (usually @@ -249,7 +250,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 = (3390).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3391).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |