Staging
v0.5.1
https://github.com/python/cpython
Revision c8dc7c320daa68a39f26f1504da1c4beeea94424 authored by Andrew M. Kuchling on 25 September 2003, 18:26:06 UTC, committed by Andrew M. Kuchling on 25 September 2003, 18:26:06 UTC
1 parent 2a15d9a
Raw File
Tip revision: c8dc7c320daa68a39f26f1504da1c4beeea94424 authored by Andrew M. Kuchling on 25 September 2003, 18:26:06 UTC
[Bug #811681] The asynchat documentation would also apply to the 2.2 version of the module, but the docs aren't included. This adds a copy of libasynchat.tex.
Tip revision: c8dc7c3
dbhash.py
"""Provide a (g)dbm-compatible interface to bsdhash.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