mirror of https://github.com/python/cpython
gh-122759: Remove `assert` from `RERAISE` error handling (#122760)
This commit is contained in:
parent
76bdeebef6
commit
61a8bf2853
|
@ -1183,7 +1183,6 @@ dummy_func(
|
|||
assert(!_PyErr_Occurred(tstate));
|
||||
}
|
||||
else {
|
||||
assert(PyLong_Check(lasti));
|
||||
_PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int");
|
||||
ERROR_NO_POP();
|
||||
}
|
||||
|
|
|
@ -5875,7 +5875,6 @@
|
|||
assert(!_PyErr_Occurred(tstate));
|
||||
}
|
||||
else {
|
||||
assert(PyLong_Check(lasti));
|
||||
_PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int");
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue