blob: 2dccadb8b1e4666ed6fbd01e30e9a7a583386829 [file] [log] [blame]
Georg Brandl0a7ac7d2008-05-26 10:29:35 +00001"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
2
3import bsddb
4
5__all__ = ["error", "open"]
6
Georg Brandlb17acad2008-05-28 08:43:17 +00007class error(bsddb.error, IOError):
8 pass
Georg Brandl0a7ac7d2008-05-26 10:29:35 +00009
10def open(file, flag = 'r', mode=0o666):
11 return bsddb.hashopen(file, flag, mode)