From c797ceb545f79cbf8899d66cfbfbd74a2e71ffdb Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Tue, 6 May 2003 20:38:52 +0000 Subject: [PATCH] add open function to bsddb185 module so the file format sniffing can be restricted to the whichdb module --- Modules/bsddbmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c index 1319bf91a26..ac8c44395f7 100644 --- a/Modules/bsddbmodule.c +++ b/Modules/bsddbmodule.c @@ -838,6 +838,8 @@ static PyMethodDef bsddbmodule_methods[] = { {"hashopen", (PyCFunction)bsdhashopen, METH_VARARGS}, {"btopen", (PyCFunction)bsdbtopen, METH_VARARGS}, {"rnopen", (PyCFunction)bsdrnopen, METH_VARARGS}, + /* strictly for use by dbhhash!!! */ + {"open", (PyCFunction)bsdhashopen, METH_VARARGS}, {0, 0}, };