diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2022-01-04 10:37:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 10:37:12 (GMT) |
commit | a94461d7189d7f1147ab304a332c8684263dc17e (patch) | |
tree | bda2df4f74cc58205d548dce76337260984962fd /Lib/importlib | |
parent | a09062c267a94200ad299f779429fea1b571ee35 (diff) | |
download | cpython-a94461d7189d7f1147ab304a332c8684263dc17e.zip cpython-a94461d7189d7f1147ab304a332c8684263dc17e.tar.gz cpython-a94461d7189d7f1147ab304a332c8684263dc17e.tar.bz2 |
bpo-46202: Remove opcode POP_EXCEPT_AND_RERAISE (GH-30302)
* bpo-46202: remove opcode POP_EXCEPT_AND_RERAISE
* do not assume that an exception group is truthy
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 095c127..2932466 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -376,6 +376,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.11a4 3468 (Add SEND opcode) # Python 3.11a4 3469 (bpo-45711: remove type, traceback from exc_info) # Python 3.11a4 3470 (bpo-46221: PREP_RERAISE_STAR no longer pushes lasti) +# Python 3.11a4 3471 (bpo-46202: remove pop POP_EXCEPT_AND_RERAISE) # # MAGIC must change whenever the bytecode emitted by the compiler may no @@ -385,7 +386,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 = (3470).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3471).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |