Staging
v0.8.1
v0.8.1
Revision 62e97f023bf0c02f5f3c1a1552e8136c0b5c4cff authored by Tim Peters on 28 March 2006, 21:44:32 UTC, committed by Tim Peters on 28 March 2006, 21:44:32 UTC
interpolate PY_FORMAT_SIZE_T instead of #if'ing on MS_WIN64.
1 parent efb6e75
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 ...