Staging
v0.5.1
https://github.com/python/cpython
Revision 741e0bb5f46588ad71d3ac940a430e46e8d77df1 authored by Vinay Sajip on 11 January 2007, 20:26:05 UTC, committed by Vinay Sajip on 11 January 2007, 20:26:05 UTC
1 parent e518551
Raw File
Tip revision: 741e0bb5f46588ad71d3ac940a430e46e8d77df1 authored by Vinay Sajip on 11 January 2007, 20:26:05 UTC
Fixed bug in fileConfig where _handlerList was not being cleared. (SF #1632328)
Tip revision: 741e0bb
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