summaryrefslogtreecommitdiff
path: root/Modules/_dbmmodule.c
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-07-02 22:38:47 +0000
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-07-02 22:38:47 +0000
commit1f900f1f69c93e409595f34a6da9e2b10e331421 (patch)
treecc8c26434cbfcac1bb6c80773bf124b3639e2ab5 /Modules/_dbmmodule.c
parent7c265a19433644fafcb8eca56633a83307f69739 (diff)
downloadcpython-git-1f900f1f69c93e409595f34a6da9e2b10e331421.tar.gz
#3247: get rid of Py_FindMethod
Third step: unix-only modules. Really remove the function this time.
Diffstat (limited to 'Modules/_dbmmodule.c')
-rw-r--r--Modules/_dbmmodule.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/Modules/_dbmmodule.c b/Modules/_dbmmodule.c
index 28f4aa79fc..78eba3648f 100644
--- a/Modules/_dbmmodule.c
+++ b/Modules/_dbmmodule.c
@@ -324,12 +324,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(NULL, 0)
"_dbm.dbm",
@@ -337,7 +331,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*/
@@ -350,7 +344,15 @@ static PyTypeObject Dbmtype = {
0, /*tp_getattro*/
0, /*tp_setattro*/
0, /*tp_as_buffer*/
- Py_TPFLAGS_DEFAULT, /*tp_xxx4*/
+ Py_TPFLAGS_DEFAULT, /*tp_flags*/
+ 0, /*tp_doc*/
+ 0, /*tp_traverse*/
+ 0, /*tp_clear*/
+ 0, /*tp_richcompare*/
+ 0, /*tp_weaklistoffset*/
+ 0, /*tp_iter*/
+ 0, /*tp_iternext*/
+ dbm_methods, /*tp_methods*/
};
/* ----------------------------------------------------------------- */