From: Jelle Zijlstra Date: Mon, 7 Apr 2025 14:48:55 +0000 (-0700) Subject: dictobject.c: Fix incorrect function name in errors (#132193) X-Git-Tag: v3.14.0a7~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9a6b702f3a19251c286588094ba00037c4b2c06e;p=thirdparty%2FPython%2Fcpython.git dictobject.c: Fix incorrect function name in errors (#132193) --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index ab18772d144b..792a34cc569f 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -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 }