1 """Provide a (g)dbm-compatible interface to bsddb.hashopen."""
7 # prevent a second import of this module from spuriously succeeding
8 del sys
.modules
[__name__
]
11 __all__
= ["error","open"]
13 error
= bsddb
.error
# Exported for anydbm
15 def open(file, flag
= 'r', mode
=0666):
16 return bsddb
.hashopen(file, flag
, mode
)