summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-11-07 20:06:23 (GMT)
committerGitHub <noreply@github.com>2022-11-07 20:06:23 (GMT)
commitbe0d5008b3caad8e18b45ba6668556081f1c0ba5 (patch)
treea397ebde862040475e6d099e60dc99c4875f9141 /PC
parent1438b779971605e516bd0a4051a704d6ffbbd58d (diff)
downloadcpython-be0d5008b3caad8e18b45ba6668556081f1c0ba5.zip
cpython-be0d5008b3caad8e18b45ba6668556081f1c0ba5.tar.gz
cpython-be0d5008b3caad8e18b45ba6668556081f1c0ba5.tar.bz2
GH-90699: Remove remaining `_Py_IDENTIFIER` stdlib usage (GH-99067)
Diffstat (limited to 'PC')
-rw-r--r--PC/_msi.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/PC/_msi.c b/PC/_msi.c
index 3686b9b..01f7fea 100644
--- a/PC/_msi.c
+++ b/PC/_msi.c
@@ -172,9 +172,7 @@ static FNFCIGETTEMPFILE(cb_gettempfile)
static FNFCISTATUS(cb_status)
{
if (pv) {
- _Py_IDENTIFIER(status);
-
- PyObject *result = _PyObject_CallMethodId(pv, &PyId_status, "iii", typeStatus, cb1, cb2);
+ PyObject *result = PyObject_CallMethod(pv, "status", "iii", typeStatus, cb1, cb2);
if (result == NULL)
return -1;
Py_DECREF(result);
@@ -185,9 +183,7 @@ static FNFCISTATUS(cb_status)
static FNFCIGETNEXTCABINET(cb_getnextcabinet)
{
if (pv) {
- _Py_IDENTIFIER(getnextcabinet);
-
- PyObject *result = _PyObject_CallMethodId(pv, &PyId_getnextcabinet, "i", pccab->iCab);
+ PyObject *result = PyObject_CallMethod(pv, "getnextcabinet", "i", pccab->iCab);
if (result == NULL)
return -1;
if (!PyBytes_Check(result)) {