Skip to content

Commit 9e42951

Browse files
Clarify an error message.
1 parent 4a195d8 commit 9e42951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/crossinterp_data_lookup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ _PyFunction_GetXIData(PyThreadState *tstate, PyObject *func,
713713
if (_PyFunction_VerifyStateless(tstate, func) < 0) {
714714
PyObject *cause = _PyErr_GetRaisedException(tstate);
715715
assert(cause != NULL);
716-
const char *msg = "non-stateless functions are not shareable";
716+
const char *msg = "only stateless functions are shareable";
717717
set_notshareableerror(tstate, cause, 0, msg);
718718
Py_DECREF(cause);
719719
return -1;

0 commit comments

Comments
 (0)