diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-10 02:47:54 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-10 02:47:54 (GMT) |
commit | 768d44f54d6c1ee7f9958680156a05b4d44e6e17 (patch) | |
tree | 2d9784363da6b395142855bac1d17d68f7a8865e /Modules/bsddbmodule.c | |
parent | 4c1f881f1366ca2fcb55071f3a1b779867fe07d4 (diff) | |
download | cpython-768d44f54d6c1ee7f9958680156a05b4d44e6e17.zip cpython-768d44f54d6c1ee7f9958680156a05b4d44e6e17.tar.gz cpython-768d44f54d6c1ee7f9958680156a05b4d44e6e17.tar.bz2 |
Deprecate the bsddb185 module for removal in 3.0.
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) |