From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 27 Jul 2025 04:28:21 +0000 (+0200) Subject: [3.13] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137123) X-Git-Tag: v3.13.6~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89f256ecd1ac7d5350e3319be07dfb71cf3327c9;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137123) gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (cherry picked from commit d5fa437dfb50e2e47632cdc994e3257608688f30) Co-authored-by: Stephen Morton --- diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 0e53a36bca55..e279a2a0885f 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -1621,7 +1621,7 @@ signal_module_exec(PyObject *m) modstate->ignore_handler = state->ignore_handler; // borrowed ref #ifdef PYHAVE_ITIMER_ERROR - modstate->itimer_error = PyErr_NewException("signal.itimer_error", + modstate->itimer_error = PyErr_NewException("signal.ItimerError", PyExc_OSError, NULL); if (modstate->itimer_error == NULL) { return -1;