[3.12] Fix a typo in `syslog`'s error message (GH-129029) (#129050)
https://github.com/python/cpython/commit/7f68e7bf2a768489ece13054d0cf9566d17... commit: 7f68e7bf2a768489ece13054d0cf9566d176c576 branch: 3.12 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: Eclips4 <kirill.bast9@mail.ru> date: 2025-01-20T10:28:55Z summary: [3.12] Fix a typo in `syslog`'s error message (GH-129029) (#129050) Fix a typo in `syslog`'s error message (GH-129029) (cherry picked from commit 9b1c1817af30e609b7cbfacbe5b1e73e21dc9e37) Co-authored-by: Tomas R <tomas.roun8@gmail.com> files: M Modules/syslogmodule.c diff --git a/Modules/syslogmodule.c b/Modules/syslogmodule.c index 6db8de9c491dd9..722364e0751d9f 100644 --- a/Modules/syslogmodule.c +++ b/Modules/syslogmodule.c @@ -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; }
participants (1)
-
Eclips4