Use existing unbound_local_error label in DELETE_FAST opcode (GH-30882)

This commit is contained in:
Kumar Aditya 2022-01-26 19:28:28 +05:30 committed by GitHub
parent d0c690b5f8
commit 1e8a3a5579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 6 deletions

View File

@ -3107,12 +3107,7 @@ handle_eval_breaker:
SETLOCAL(oparg, NULL); SETLOCAL(oparg, NULL);
DISPATCH(); DISPATCH();
} }
format_exc_check_arg( goto unbound_local_error;
tstate, PyExc_UnboundLocalError,
UNBOUNDLOCAL_ERROR_MSG,
PyTuple_GetItem(frame->f_code->co_localsplusnames, oparg)
);
goto error;
} }
TARGET(MAKE_CELL) { TARGET(MAKE_CELL) {