diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-07-02 22:38:47 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-07-02 22:38:47 (GMT) |
commit | 1f900f1f69c93e409595f34a6da9e2b10e331421 (patch) | |
tree | cc8c26434cbfcac1bb6c80773bf124b3639e2ab5 /Modules/_gdbmmodule.c | |
parent | 7c265a19433644fafcb8eca56633a83307f69739 (diff) | |
download | cpython-1f900f1f69c93e409595f34a6da9e2b10e331421.zip cpython-1f900f1f69c93e409595f34a6da9e2b10e331421.tar.gz cpython-1f900f1f69c93e409595f34a6da9e2b10e331421.tar.bz2 |
#3247: get rid of Py_FindMethod
Third step: unix-only modules. Really remove the function this time.
Diffstat (limited to 'Modules/_gdbmmodule.c')
-rw-r--r-- | Modules/_gdbmmodule.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Modules/_gdbmmodule.c b/Modules/_gdbmmodule.c index b253e20..590ef21 100644 --- a/Modules/_gdbmmodule.c +++ b/Modules/_gdbmmodule.c @@ -381,12 +381,6 @@ static PyMethodDef dbm_methods[] = { {NULL, NULL} /* sentinel */ }; -static PyObject * -dbm_getattr(dbmobject *dp, char *name) -{ - return Py_FindMethod(dbm_methods, (PyObject *)dp, name); -} - static PyTypeObject Dbmtype = { PyVarObject_HEAD_INIT(0, 0) "_gdbm.gdbm", @@ -394,7 +388,7 @@ static PyTypeObject Dbmtype = { 0, (destructor)dbm_dealloc, /*tp_dealloc*/ 0, /*tp_print*/ - (getattrfunc)dbm_getattr, /*tp_getattr*/ + 0, /*tp_getattr*/ 0, /*tp_setattr*/ 0, /*tp_compare*/ 0, /*tp_repr*/ @@ -409,6 +403,13 @@ static PyTypeObject Dbmtype = { 0, /*tp_as_buffer*/ Py_TPFLAGS_DEFAULT, /*tp_xxx4*/ gdbm_object__doc__, /*tp_doc*/ + 0, /*tp_traverse*/ + 0, /*tp_clear*/ + 0, /*tp_richcompare*/ + 0, /*tp_weaklistoffset*/ + 0, /*tp_iter*/ + 0, /*tp_iternext*/ + dbm_methods, /*tp_methods*/ }; /* ----------------------------------------------------------------- */ |