]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Fix a typo in `syslog`'s error message (GH-129029) (#129050)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jan 2025 10:28:55 +0000 (11:28 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2025 10:28:55 +0000 (10:28 +0000)
Fix a typo in `syslog`'s error message (GH-129029)
(cherry picked from commit 9b1c1817af30e609b7cbfacbe5b1e73e21dc9e37)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Modules/syslogmodule.c

index 6db8de9c491dd91538fefa38c375f804a0df6c13..722364e0751d9fc4cbafe7036dcc20684dd4b194 100644 (file)
@@ -250,7 +250,7 @@ syslog_closelog_impl(PyObject *module)
     // Since the sys.closelog changes the process level state of syslog library,
     // this operation is only allowed for the main interpreter.
     if (!is_main_interpreter()) {
-        PyErr_SetString(PyExc_RuntimeError, "sunbinterpreter can't use syslog.closelog()");
+        PyErr_SetString(PyExc_RuntimeError, "subinterpreter can't use syslog.closelog()");
         return NULL;
     }