11 lines
212 B
Python
11 lines
212 B
Python
|
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
|
||
|
|
||
|
import bsddb
|
||
|
|
||
|
__all__ = ["error", "open"]
|
||
|
|
||
|
error = bsddb.error
|
||
|
|
||
|
def open(file, flag = 'r', mode=0o666):
|
||
|
return bsddb.hashopen(file, flag, mode)
|