summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/_bootstrap_external.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-05-16 16:34:20 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-05-16 16:34:20 (GMT)
commit7ae61af8278c9a27caf508d6dece62bd4f5f552f (patch)
tree03bcf2938ed0062c4f6c613304b7ad4a46cf1a07 /Lib/importlib/_bootstrap_external.py
parente6f060903cf2080b6570a87fde5021aa14d05530 (diff)
downloadcpython-7ae61af8278c9a27caf508d6dece62bd4f5f552f.zip
cpython-7ae61af8278c9a27caf508d6dece62bd4f5f552f.tar.gz
cpython-7ae61af8278c9a27caf508d6dece62bd4f5f552f.tar.bz2
Issue #26073: Updates magic number comment in _bootstrap_external.py and changes numbers in launcher.py to decimal to match official table.
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-rw-r--r--Lib/importlib/_bootstrap_external.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py
index 616b17f..ef13fd2 100644
--- a/Lib/importlib/_bootstrap_external.py
+++ b/Lib/importlib/_bootstrap_external.py
@@ -227,6 +227,9 @@ _code_type = type(_write_atomic.__code__)
# MAGIC must change whenever the bytecode emitted by the compiler may no
# longer be understood by older implementations of the eval loop (usually
# due to the addition of new opcodes).
+#
+# Whenever MAGIC_NUMBER is changed, the ranges in the magic_values array
+# in PC/launcher.c must also be updated.
MAGIC_NUMBER = (3350).to_bytes(2, 'little') + b'\r\n'
_RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c