From 556c8f625327a902874957426a5ad408644e7c79 Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Thu, 17 Feb 2022 00:42:11 +0900 Subject: [PATCH] bpo-46541: Remove usage of _Py_IDENTIFIER from mmap module --- Modules/mmapmodule.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index 0a216941d02487..26cedf1b9006d8 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -21,7 +21,6 @@ #ifndef Py_BUILD_CORE_BUILTIN # define Py_BUILD_CORE_MODULE 1 #endif -#define NEEDS_PY_IDENTIFIER #define PY_SSIZE_T_CLEAN #include @@ -771,9 +770,7 @@ mmap__enter__method(mmap_object *self, PyObject *args) static PyObject * mmap__exit__method(PyObject *self, PyObject *args) { - _Py_IDENTIFIER(close); - - return _PyObject_CallMethodIdNoArgs(self, &PyId_close); + return mmap_close_method((mmap_object *)self, NULL); } static PyObject *