diff options
Diffstat (limited to 'Modules/bsddbmodule.c')
-rw-r--r-- | Modules/bsddbmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/bsddbmodule.c b/Modules/bsddbmodule.c index 61c6564..0972882 100644 --- a/Modules/bsddbmodule.c +++ b/Modules/bsddbmodule.c @@ -847,6 +847,10 @@ PyMODINIT_FUNC initbsddb185(void) { PyObject *m, *d; + if (PyErr_WarnPy3k("the bsddb185 module has been removed in " + "Python 3.0", 2) < 0) + return; + Bsddbtype.ob_type = &PyType_Type; m = Py_InitModule("bsddb185", bsddbmodule_methods); if (m == NULL) |