Staging
v0.8.1
https://github.com/python/cpython
Revision 2fec8b935f524b07d475c3e471197d0391eee235 authored by Georg Brandl on 11 February 2006, 15:30:59 UTC, committed by Georg Brandl on 11 February 2006, 15:30:59 UTC
1 parent 261058c
Raw File
Tip revision: 2fec8b935f524b07d475c3e471197d0391eee235 authored by Georg Brandl on 11 February 2006, 15:30:59 UTC
Update general copyright year to 2006.
Tip revision: 2fec8b9
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