Staging
v0.5.1
https://github.com/python/cpython
Revision 5af105eec996a86500d0b1e81379308b86ec4e38 authored by Jeremy Hylton on 11 April 2001, 16:21:51 UTC, committed by Jeremy Hylton on 11 April 2001, 16:21:51 UTC
consts, even if it is None.

Simplify _lookupName() by removing lots of redundant tests.
1 parent ceccc3c
Raw File
Tip revision: 5af105eec996a86500d0b1e81379308b86ec4e38 authored by Jeremy Hylton on 11 April 2001, 16:21:51 UTC
Make sure the docstring is always entered as the first element in the
Tip revision: 5af105e
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, mode=0666):
    return bsddb.hashopen(file, flag, mode)
back to top