]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix a typo in `syslog`'s error message (GH-129029) (#129049)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jan 2025 10:37:21 +0000 (11:37 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2025 10:37:21 +0000 (10:37 +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 14e7ca591a076b22a7f319334c79e92263797992..adbd2fcc6ed74d715559804e1e666f297db322a3 100644 (file)
@@ -258,7 +258,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;
     }