summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-10-09 08:15:17 (GMT)
committerGitHub <noreply@github.com>2024-10-09 08:15:17 (GMT)
commite0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340 (patch)
tree6bb6ba38ecbc3cfe2a062f91326561ade463bfd2 /Python/getargs.c
parent7f93dbf6fec152888727a0f25a3aa030d1fe27ca (diff)
downloadcpython-e0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340.zip
cpython-e0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340.tar.gz
cpython-e0c87c64b1cb4112ed5cfc1ae84ff8e48b1c0340.tar.bz2
gh-124502: Remove _PyUnicode_EQ() function (#125114)
* Replace unicode_compare_eq() with unicode_eq(). * Use unicode_eq() in setobject.c. * Replace _PyUnicode_EQ() with _PyUnicode_Equal(). * Remove unicode_compare_eq() and _PyUnicode_EQ().
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 1b9b399..a764343 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -2064,7 +2064,7 @@ find_keyword(PyObject *kwnames, PyObject *const *kwstack, PyObject *key)
for (i = 0; i < nkwargs; i++) {
PyObject *kwname = PyTuple_GET_ITEM(kwnames, i);
assert(PyUnicode_Check(kwname));
- if (_PyUnicode_EQ(kwname, key)) {
+ if (_PyUnicode_Equal(kwname, key)) {
return Py_NewRef(kwstack[i]);
}
}