diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-11-07 20:06:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 20:06:23 (GMT) |
commit | be0d5008b3caad8e18b45ba6668556081f1c0ba5 (patch) | |
tree | a397ebde862040475e6d099e60dc99c4875f9141 /PC | |
parent | 1438b779971605e516bd0a4051a704d6ffbbd58d (diff) | |
download | cpython-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.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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)) { |