+++ /dev/null
-"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""\r
-\r
-import sys\r
-import warnings\r
-warnings.warnpy3k("in 3.x, the dbhash module has been removed", stacklevel=2)\r
-try:\r
- import bsddb\r
-except ImportError:\r
- # prevent a second import of this module from spuriously succeeding\r
- del sys.modules[__name__]\r
- raise\r
-\r
-__all__ = ["error","open"]\r
-\r
-error = bsddb.error # Exported for anydbm\r
-\r
-def open(file, flag = 'r', mode=0666):\r
- return bsddb.hashopen(file, flag, mode)\r