From: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Date: Wed, 26 Jan 2022 13:58:28 +0000 (+0530) Subject: Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882) X-Git-Tag: v3.11.0a5~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e8a3a5579c9a96a45073b24d1af2dbe3039d366;p=thirdparty%2FPython%2Fcpython.git Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882) --- diff --git a/Python/ceval.c b/Python/ceval.c index 0a6fc4a20660..29ca5e3750cc 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) {