Staging
v0.8.1
v0.8.1
Revision 8ca6c84b6f8a6cd0c76db8937d471bddb4bf2a1d authored by Georg Brandl on 28 March 2008, 12:22:12 UTC, committed by Georg Brandl on 28 March 2008, 12:22:12 UTC
1 parent fc8eef3
dbhash.py
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
import sys
try:
import bsddb
except ImportError:
# prevent a second import of this module from spuriously succeeding
del sys.modules[__name__]
raise
__all__ = ["error","open"]
error = bsddb.error # Exported for anydbm
def open(file, flag = 'r', mode=0666):
return bsddb.hashopen(file, flag, mode)
Computing file changes ...