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/dbhash.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/dbhash.py')
-rw-r--r-- | Lib/dbhash.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/dbhash.py b/Lib/dbhash.py index 9f8a9c3..5ca0bc1 100644 --- a/Lib/dbhash.py +++ b/Lib/dbhash.py @@ -1,6 +1,9 @@ """Provide a (g)dbm-compatible interface to bsddb.hashopen.""" import sys +if sys.py3kwarning: + import warnings + warnings.warnpy3k("in 3.x, dbhash has been removed", DeprecationWarning, 2) try: import bsddb except ImportError: |