Staging
v0.5.1
https://github.com/python/cpython
Revision 504a48f90ab957c1ebe8fc2c4f173f410f707f9e authored by Amaury Forgeot d'Arc on 29 March 2008, 01:41:08 UTC, committed by Amaury Forgeot d'Arc on 29 March 2008, 01:41:08 UTC
1 parent 4130930
Raw File
Tip revision: 504a48f90ab957c1ebe8fc2c4f173f410f707f9e authored by Amaury Forgeot d'Arc on 29 March 2008, 01:41:08 UTC
Revert my experiment. I found one reason of failures in test_logging.
Tip revision: 504a48f
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