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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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