summaryrefslogtreecommitdiffstats
path: root/Modules/ossaudiodev.c
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 /Modules/ossaudiodev.c
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 'Modules/ossaudiodev.c')
-rw-r--r--Modules/ossaudiodev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index 0568b6d..f1c126f 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -20,7 +20,6 @@
#ifndef Py_BUILD_CORE_BUILTIN
# define Py_BUILD_CORE_MODULE 1
#endif
-#define NEEDS_PY_IDENTIFIER
#define PY_SSIZE_T_CLEAN
#include "Python.h"
@@ -542,9 +541,7 @@ oss_self(PyObject *self, PyObject *unused)
static PyObject *
oss_exit(PyObject *self, PyObject *unused)
{
- _Py_IDENTIFIER(close);
-
- PyObject *ret = _PyObject_CallMethodIdNoArgs(self, &PyId_close);
+ PyObject *ret = PyObject_CallMethod(self, "close", NULL);
if (!ret)
return NULL;
Py_DECREF(ret);