mirror of https://github.com/python/cpython
wrap
This commit is contained in:
parent
3dd9f40d6d
commit
73541af85d
|
@ -1,9 +1,9 @@
|
||||||
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
|
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
if sys.py3kwarning:
|
import warnings
|
||||||
import warnings
|
warnings.warnpy3k("in 3.x, the dbhash module has been removed",
|
||||||
warnings.warnpy3k("in 3.x, the dbhash module has been removed", DeprecationWarning, 2)
|
DeprecationWarning, 2)
|
||||||
try:
|
try:
|
||||||
import bsddb
|
import bsddb
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue