summaryrefslogtreecommitdiffstats
path: root/Lib/dbm/bsd.py
blob: 8353f5037661ab4377a7e9324ef9878016d0dc5a (plain)
1
2
3
4
5
6
7
8
9
10
"""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)