commit | 768d44f54d6c1ee7f9958680156a05b4d44e6e17 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Sat May 10 02:47:54 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Sat May 10 02:47:54 2008 +0000 |
tree | 2d9784363da6b395142855bac1d17d68f7a8865e | |
parent | 4c1f881f1366ca2fcb55071f3a1b779867fe07d4 [diff] |
Deprecate the bsddb185 module for removal in 3.0.
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 @@ 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)