We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b207711 commit e8a19b0Copy full SHA for e8a19b0
1 file changed
Modules/mmapmodule.c
@@ -21,7 +21,6 @@
21
#ifndef Py_BUILD_CORE_BUILTIN
22
# define Py_BUILD_CORE_MODULE 1
23
#endif
24
-#define NEEDS_PY_IDENTIFIER
25
26
#define PY_SSIZE_T_CLEAN
27
#include <Python.h>
@@ -771,9 +770,7 @@ mmap__enter__method(mmap_object *self, PyObject *args)
771
770
static PyObject *
772
mmap__exit__method(PyObject *self, PyObject *args)
773
{
774
- _Py_IDENTIFIER(close);
775
-
776
- return _PyObject_CallMethodIdNoArgs(self, &PyId_close);
+ return mmap_close_method((mmap_object *)self, NULL);
777
}
778
779
0 commit comments