]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix a typo in `syslog`'s error message (#129029)
authorTomas R. <tomas.roun8@gmail.com>
Mon, 20 Jan 2025 10:11:08 +0000 (11:11 +0100)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2025 10:11:08 +0000 (10:11 +0000)
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;
     }