]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-126662: naming consistency for `signal.ItimerError` (GH-126712) (#137122)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 17:42:46 +0000 (19:42 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 17:42:46 +0000 (19:42 +0200)
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 54bcd3270ef31ac49f67a59fcaa6ad7934464f0c..c1c3d7c9c055345651831ebec24c29f1b0b2d8c7 100644 (file)
@@ -1623,7 +1623,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;