Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 54e3cf06331d484ba7711e75d2bb34c212b2c9fa authored by Tim Peters on 02 August 2006, 18:19:35 UTC
Add missing svn:eol-style property to text files.
Tip revision: 54e3cf0
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