]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in error message misspelling __slotnames__ (GH-115772)
authorJay Aljelo Ting <65202977+jayasting98@users.noreply.github.com>
Fri, 6 Sep 2024 11:50:55 +0000 (19:50 +0800)
committerGitHub <noreply@github.com>
Fri, 6 Sep 2024 11:50:55 +0000 (13:50 +0200)
Objects/typeobject.c

index 9dc0ebd1c6a852f4a3e8b46da25e7341edd24ea7..6740da108ace917fcf64160f3df4ce24bc06305e 100644 (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;
             }