]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
dictobject.c: Fix incorrect function name in errors (#132193)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Mon, 7 Apr 2025 14:48:55 +0000 (07:48 -0700)
committerGitHub <noreply@github.com>
Mon, 7 Apr 2025 14:48:55 +0000 (07:48 -0700)
Objects/dictobject.c

index ab18772d144bba966abe98c133fc5f1c543d3c56..792a34cc569fe8e263bf6932c394454a1e23b7c5 100644 (file)
@@ -4947,12 +4947,12 @@ PyDict_GetItemString(PyObject *v, const char *key)
     if (kv == NULL) {
         PyErr_FormatUnraisable(
             "Exception ignored in PyDict_GetItemString(); consider using "
-            "PyDict_GetItemRefString()");
+            "PyDict_GetItemStringRef()");
         return NULL;
     }
     rv = dict_getitem(v, kv,
             "Exception ignored in PyDict_GetItemString(); consider using "
-            "PyDict_GetItemRefString()");
+            "PyDict_GetItemStringRef()");
     Py_DECREF(kv);
     return rv;  // borrowed reference
 }