Deprecate bsddb for removal in Python 3.0.

Closes issue 3776.
Review by Nick Coghlan.
This commit is contained in:
Brett Cannon 2008-09-05 18:33:51 +00:00
parent 6024834ed9
commit 32476fc5a8
8 changed files with 26 additions and 6 deletions

View file

@ -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: