Staging
v0.5.1
https://github.com/python/cpython
Revision 061f132898d3232420db1c00a5adde13647d7e21 authored by Martin v. Löwis on 29 August 2004, 16:40:55 UTC, committed by Martin v. Löwis on 29 August 2004, 16:40:55 UTC
1 parent e064b41
Raw File
Tip revision: 061f132898d3232420db1c00a5adde13647d7e21 authored by Martin v. Löwis on 29 August 2004, 16:40:55 UTC
Patch #973204: Use -rpath instead of -R on Irix and Tru64.
Tip revision: 061f132
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