Fix typo in error message misspelling __slotnames__ (GH-115772)

This commit is contained in:
Jay Aljelo Ting
2024-09-06 19:50:55 +08:00
committed by GitHub
parent 853588e24c
commit 782a076362

View File

@@ -6940,7 +6940,7 @@ object_getstate_default(PyObject *obj, int required)
iterate over it */
if (slotnames_size != PyList_GET_SIZE(slotnames)) {
PyErr_Format(PyExc_RuntimeError,
"__slotsname__ changed size during iteration");
"__slotnames__ changed size during iteration");
goto error;
}