2008-05-26 07:29:35 -03:00
|
|
|
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
|
|
|
|
|
|
|
|
import bsddb
|
|
|
|
|
|
|
|
__all__ = ["error", "open"]
|
|
|
|
|
2008-05-28 05:43:17 -03:00
|
|
|
class error(bsddb.error, IOError):
|
|
|
|
pass
|
2008-05-26 07:29:35 -03:00
|
|
|
|
|
|
|
def open(file, flag = 'r', mode=0o666):
|
|
|
|
return bsddb.hashopen(file, flag, mode)
|