Skip to content

Commit

Permalink
[3.12] Fix a typo in syslog's error message (GH-129029) (#129050)
Browse files Browse the repository at this point in the history
Fix a typo in `syslog`'s error message (GH-129029)
(cherry picked from commit 9b1c181)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
  • Loading branch information
miss-islington and tomasr8 authored Jan 20, 2025
1 parent 49b2f31 commit 7f68e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/syslogmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7f68e7b

Please sign in to comment.