]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137123)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 27 Jul 2025 04:28:21 +0000 (06:28 +0200)
committerGitHub <noreply@github.com>
Sun, 27 Jul 2025 04:28:21 +0000 (09:58 +0530)
gh-126662: naming consistency for `signal.ItimerError` (GH-126712)
(cherry picked from commit d5fa437dfb50e2e47632cdc994e3257608688f30)

Co-authored-by: Stephen Morton <git@tungol.org>
Modules/signalmodule.c

index 0e53a36bca55f0326ed29bfd22af55e4aa7397ed..e279a2a0885fc06fb375454ac8d9b5c8126fe7d9 100644 (file)
@@ -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;