mirror of
https://github.com/python/cpython
synced 2024-09-05 08:17:45 +00:00
bpo-46541: Remove usage of _Py_IDENTIFIER from dbms modules (GH-31358)
This commit is contained in:
parent
0cb765b2ce
commit
e59309b9d0
|
@ -3,7 +3,6 @@
|
|||
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#define NEEDS_PY_IDENTIFIER
|
||||
#include "Python.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -396,8 +395,7 @@ dbm__enter__(PyObject *self, PyObject *args)
|
|||
static PyObject *
|
||||
dbm__exit__(PyObject *self, PyObject *args)
|
||||
{
|
||||
_Py_IDENTIFIER(close);
|
||||
return _PyObject_CallMethodIdNoArgs(self, &PyId_close);
|
||||
return _dbm_dbm_close_impl((dbmobject *)self);
|
||||
}
|
||||
|
||||
static PyMethodDef dbm_methods[] = {
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
/* Doc strings: Mitch Chapman */
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#define NEEDS_PY_IDENTIFIER
|
||||
#include "Python.h"
|
||||
#include "gdbm.h"
|
||||
|
||||
|
@ -545,8 +544,7 @@ gdbm__enter__(PyObject *self, PyObject *args)
|
|||
static PyObject *
|
||||
gdbm__exit__(PyObject *self, PyObject *args)
|
||||
{
|
||||
_Py_IDENTIFIER(close);
|
||||
return _PyObject_CallMethodIdNoArgs(self, &PyId_close);
|
||||
return _gdbm_gdbm_close_impl((gdbmobject *)self);
|
||||
}
|
||||
|
||||
static PyMethodDef gdbm_methods[] = {
|
||||
|
|
Loading…
Reference in a new issue