Skip to content

Commit 1e8a3a5

Browse files
Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882)
1 parent d0c690b commit 1e8a3a5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Python/ceval.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3107,12 +3107,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, InterpreterFrame *frame, int thr
31073107
SETLOCAL(oparg, NULL);
31083108
DISPATCH();
31093109
}
3110-
format_exc_check_arg(
3111-
tstate, PyExc_UnboundLocalError,
3112-
UNBOUNDLOCAL_ERROR_MSG,
3113-
PyTuple_GetItem(frame->f_code->co_localsplusnames, oparg)
3114-
);
3115-
goto error;
3110+
goto unbound_local_error;
31163111
}
31173112

31183113
TARGET(MAKE_CELL) {

0 commit comments

Comments
 (0)