diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-03-04 04:41:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 12:41:17 +0000 |
commit | 586b24d3be1aec5d2568b070a249b4d75e608782 (patch) | |
tree | e5e92e960433634f839118b51039a3fec3429d3e /Lib/importlib/_bootstrap_external.py | |
parent | 03c2a36b2bd2d4469160d1607619ee144175d753 (diff) | |
download | cpython-586b24d3be1aec5d2568b070a249b4d75e608782.tar.gz cpython-586b24d3be1aec5d2568b070a249b4d75e608782.zip |
bpo-46841: Fix error message hacks in `GET_AWAITABLE` (GH-31664)
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 9d36bc27c44..529ca5a2951 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -392,6 +392,7 @@ _code_type = type(_write_atomic.__code__) # Python 3.11a5 3483 (Use inline caching for COMPARE_OP and BINARY_SUBSCR) # Python 3.11a5 3484 (Use inline caching for LOAD_ATTR, LOAD_METHOD, and # STORE_ATTR) +# Python 3.11a5 3485 (Add an oparg to GET_AWAITABLE) # Python 3.12 will start with magic number 3500 @@ -406,7 +407,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 = (3484).to_bytes(2, 'little') + b'\r\n' +MAGIC_NUMBER = (3485).to_bytes(2, 'little') + b'\r\n' _RAW_MAGIC_NUMBER = int.from_bytes(MAGIC_NUMBER, 'little') # For import.c _PYCACHE = '__pycache__' |