diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-07-05 13:38:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-05 14:38:44 +0200 |
commit | 324d01944d16868b07df9e8eef6987766a31a36d (patch) | |
tree | 8162971b60cfa1d724a1c87d7913cf6c2170081a /Lib/importlib/_bootstrap_external.py | |
parent | a2a3f2c541290fc8f0720d1abdc12d564b856c28 (diff) | |
download | cpython-324d01944d16868b07df9e8eef6987766a31a36d.tar.gz cpython-324d01944d16868b07df9e8eef6987766a31a36d.zip |
gh-94485: Set line number of module's RESUME instruction to 0, as specified by PEP 626 (GH-94552)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Diffstat (limited to 'Lib/importlib/_bootstrap_external.py')
-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 6cd3538624c..007127b9fd4 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -410,6 +410,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.12a1 3504 (Merge LOAD_METHOD back into LOAD_ATTR) # Python 3.12a1 3505 (Specialization/Cache for FOR_ITER) # Python 3.12a1 3506 (Add BINARY_SLICE and STORE_SLICE instructions) +# Python 3.12a1 3507 (Set lineno of module's RESUME to 0) # Python 3.13 will start with 3550 @@ -423,7 +424,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 = (3506).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3507).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c |