Staging
v0.8.1
https://github.com/python/cpython
Revision 8022feed57dfb3ef54771fcf752f8ae85a28635f authored by Anthony Baxter on 18 October 2006, 07:02:36 UTC, committed by Anthony Baxter on 18 October 2006, 07:02:36 UTC
1 parent b499eec
Raw File
Tip revision: 8022feed57dfb3ef54771fcf752f8ae85a28635f authored by Anthony Baxter on 18 October 2006, 07:02:36 UTC
regenerating tag.
Tip revision: 8022fee
dbhash.py
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""

import sys
try:
    import bsddb
except ImportError:
    # prevent a second import of this module from spuriously succeeding
    del sys.modules[__name__]
    raise

__all__ = ["error","open"]

error = bsddb.error                     # Exported for anydbm

def open(file, flag = 'r', mode=0666):
    return bsddb.hashopen(file, flag, mode)
back to top