diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-09-05 18:33:51 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-09-05 18:33:51 (GMT) |
commit | 32476fc5a8c1e4bdfab04ab09b254a3c833e5785 (patch) | |
tree | 1ddd84d1817eec0dad96aae8ba8408db353b131a /Lib/bsddb/__init__.py | |
parent | 6024834ed9887b47cfa798f20e99d5c941b97f24 (diff) | |
download | cpython-32476fc5a8c1e4bdfab04ab09b254a3c833e5785.zip cpython-32476fc5a8c1e4bdfab04ab09b254a3c833e5785.tar.gz cpython-32476fc5a8c1e4bdfab04ab09b254a3c833e5785.tar.bz2 |
Deprecate bsddb for removal in Python 3.0.
Closes issue 3776.
Review by Nick Coghlan.
Diffstat (limited to 'Lib/bsddb/__init__.py')
-rw-r--r-- | Lib/bsddb/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index 0e5169c..0af679f 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -42,6 +42,12 @@ instead. It mirrors the Oracle Berkeley DB C API. import sys absolute_import = (sys.version_info[0] >= 3) +if sys.py3kwarning: + import warnings + warnings.warnpy3k("in 3.x, bsddb has been removed; " + "please use the pybsddb project instead", + DeprecationWarning, 2) + try: if __name__ == 'bsddb3': # import _pybsddb binary as it should be the more recent version from |