From 1e8a3a5579c9a96a45073b24d1af2dbe3039d366 Mon Sep 17 00:00:00 2001 From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Wed, 26 Jan 2022 19:28:28 +0530 Subject: [PATCH] Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882) --- Python/ceval.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Python/ceval.c b/Python/ceval.c index 0a6fc4a2066..29ca5e3750c 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) {