mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
bpo-46541: Remove usage of _Py_IDENTIFIER from mmap module (GH-31375)
This commit is contained in:
parent
b2077117d1
commit
e8a19b092f
1 changed files with 1 additions and 4 deletions
|
|
@ -21,7 +21,6 @@
|
||||||
#ifndef Py_BUILD_CORE_BUILTIN
|
#ifndef Py_BUILD_CORE_BUILTIN
|
||||||
# define Py_BUILD_CORE_MODULE 1
|
# define Py_BUILD_CORE_MODULE 1
|
||||||
#endif
|
#endif
|
||||||
#define NEEDS_PY_IDENTIFIER
|
|
||||||
|
|
||||||
#define PY_SSIZE_T_CLEAN
|
#define PY_SSIZE_T_CLEAN
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
@ -771,9 +770,7 @@ mmap__enter__method(mmap_object *self, PyObject *args)
|
||||||
static PyObject *
|
static PyObject *
|
||||||
mmap__exit__method(PyObject *self, PyObject *args)
|
mmap__exit__method(PyObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
_Py_IDENTIFIER(close);
|
return mmap_close_method((mmap_object *)self, NULL);
|
||||||
|
|
||||||
return _PyObject_CallMethodIdNoArgs(self, &PyId_close);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue