mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Remove the binary_subscr_dict_error label (GH-96443)
This commit is contained in:
parent
02dbb362d3
commit
88671a9d69
1 changed files with 4 additions and 11 deletions
|
@ -1621,7 +1621,10 @@ handle_eval_breaker:
|
||||||
PyObject *sub = TOP();
|
PyObject *sub = TOP();
|
||||||
PyObject *res = PyDict_GetItemWithError(dict, sub);
|
PyObject *res = PyDict_GetItemWithError(dict, sub);
|
||||||
if (res == NULL) {
|
if (res == NULL) {
|
||||||
goto binary_subscr_dict_error;
|
if (!_PyErr_Occurred(tstate)) {
|
||||||
|
_PyErr_SetKeyError(sub);
|
||||||
|
}
|
||||||
|
goto error;
|
||||||
}
|
}
|
||||||
Py_INCREF(res);
|
Py_INCREF(res);
|
||||||
STACK_SHRINK(1);
|
STACK_SHRINK(1);
|
||||||
|
@ -5193,16 +5196,6 @@ miss:
|
||||||
DISPATCH_GOTO();
|
DISPATCH_GOTO();
|
||||||
}
|
}
|
||||||
|
|
||||||
binary_subscr_dict_error:
|
|
||||||
{
|
|
||||||
PyObject *sub = POP();
|
|
||||||
if (!_PyErr_Occurred(tstate)) {
|
|
||||||
_PyErr_SetKeyError(sub);
|
|
||||||
}
|
|
||||||
Py_DECREF(sub);
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
unbound_local_error:
|
unbound_local_error:
|
||||||
{
|
{
|
||||||
format_exc_check_arg(tstate, PyExc_UnboundLocalError,
|
format_exc_check_arg(tstate, PyExc_UnboundLocalError,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue