Staging
v0.5.1
https://github.com/python/cpython
Revision 7a6b4f0284ba363ddd3ded308449b6d2d838a3d2 authored by Fred Drake on 17 July 2003, 16:00:01 UTC, committed by Fred Drake on 17 July 2003, 16:00:01 UTC
1 parent 032fffe
Raw File
Tip revision: 7a6b4f0284ba363ddd3ded308449b6d2d838a3d2 authored by Fred Drake on 17 July 2003, 16:00:01 UTC
more markup chages
Tip revision: 7a6b4f0
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