]> granicus.if.org Git - python/commitdiff
add open function to bsddb185 module so the file format sniffing can be
authorSkip Montanaro <skip@pobox.com>
Tue, 6 May 2003 20:38:52 +0000 (20:38 +0000)
committerSkip Montanaro <skip@pobox.com>
Tue, 6 May 2003 20:38:52 +0000 (20:38 +0000)
restricted to the whichdb module

Modules/bsddbmodule.c

index 1319bf91a269a2b338541291e338c93e13e9f3f4..ac8c44395f7ebe197baece010d349603e49b6126 100644 (file)
@@ -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},
 };