File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 33
44
55#define PY_SSIZE_T_CLEAN
6- #define NEEDS_PY_IDENTIFIER
76#include "Python.h"
87
98#include <sys/types.h>
@@ -396,8 +395,7 @@ dbm__enter__(PyObject *self, PyObject *args)
396395static PyObject *
397396dbm__exit__ (PyObject * self , PyObject * args )
398397{
399- _Py_IDENTIFIER (close );
400- return _PyObject_CallMethodIdNoArgs (self , & PyId_close );
398+ return _dbm_dbm_close_impl ((dbmobject * )self );
401399}
402400
403401static PyMethodDef dbm_methods [] = {
Original file line number Diff line number Diff line change 44/* Doc strings: Mitch Chapman */
55
66#define PY_SSIZE_T_CLEAN
7- #define NEEDS_PY_IDENTIFIER
87#include "Python.h"
98#include "gdbm.h"
109
@@ -545,8 +544,7 @@ gdbm__enter__(PyObject *self, PyObject *args)
545544static PyObject *
546545gdbm__exit__ (PyObject * self , PyObject * args )
547546{
548- _Py_IDENTIFIER (close );
549- return _PyObject_CallMethodIdNoArgs (self , & PyId_close );
547+ return _gdbm_gdbm_close_impl ((gdbmobject * )self );
550548}
551549
552550static PyMethodDef gdbm_methods [] = {
You can’t perform that action at this time.
0 commit comments