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