Staging
v0.5.1
v0.5.1
Revision 3078cb922481646cf35cc31b5e4a358766092af8 authored by Georg Brandl on 31 August 2005, 22:48:48 UTC, committed by Georg Brandl on 31 August 2005, 22:48:48 UTC
1 parent 6b4a932
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 ...