blob: 2dccadb8b1e4666ed6fbd01e30e9a7a583386829 [file] [log] [blame]
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
import bsddb
__all__ = ["error", "open"]
class error(bsddb.error, IOError):
pass
def open(file, flag = 'r', mode=0o666):
return bsddb.hashopen(file, flag, mode)