Get rid of ERROR_IF's "label" parameter (GH-132654)

This commit is contained in:
Brandt Bucher 2025-04-29 17:21:53 -07:00 committed by GitHub
parent b329096cfb
commit 732d1b0241
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 155 additions and 162 deletions

View file

@ -28,7 +28,6 @@ static PyObject *
print_expr(PyThreadState* Py_UNUSED(ignored), PyObject *value)
{
PyObject *hook = _PySys_GetRequiredAttr(&_Py_ID(displayhook));
// Can't use ERROR_IF here.
if (hook == NULL) {
return NULL;
}