◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
4 changes: 1 addition & 3 deletions Modules/_dbmmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


#define PY_SSIZE_T_CLEAN
#define NEEDS_PY_IDENTIFIER
#include "Python.h"

#include <sys/types.h>
Expand Up @@ -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);
}

static PyMethodDef dbm_methods[] = {
Expand Down
4 changes: 1 addition & 3 deletions Modules/_gdbmmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/* Doc strings: Mitch Chapman */

#define PY_SSIZE_T_CLEAN
#define NEEDS_PY_IDENTIFIER
#include "Python.h"
#include "gdbm.h"

Expand Down Expand Up @@ -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);
}

static PyMethodDef gdbm_methods[] = {
Expand Down
Toggle all file notes Toggle all file annotations