diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-01-26 13:58:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-26 13:58:28 (GMT) |
commit | 1e8a3a5579c9a96a45073b24d1af2dbe3039d366 (patch) | |
tree | 9fc530ab397b2fea976a0ff9cd51909ce7aa5f04 /Python | |
parent | d0c690b5f85c679de6059cf353fe0524e905530e (diff) | |
download | cpython-1e8a3a5579c9a96a45073b24d1af2dbe3039d366.zip cpython-1e8a3a5579c9a96a45073b24d1af2dbe3039d366.tar.gz cpython-1e8a3a5579c9a96a45073b24d1af2dbe3039d366.tar.bz2 |
Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 0a6fc4a..29ca5e3 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3107,12 +3107,7 @@ handle_eval_breaker: SETLOCAL(oparg, NULL); DISPATCH(); } - format_exc_check_arg( - tstate, PyExc_UnboundLocalError, - UNBOUNDLOCAL_ERROR_MSG, - PyTuple_GetItem(frame->f_code->co_localsplusnames, oparg) - ); - goto error; + goto unbound_local_error; } TARGET(MAKE_CELL) { |