Staging
v0.5.1
https://github.com/python/cpython
Revision 6bf9b858597303448844b1c84de5d32d9dd0b565 authored by Terry Jan Reedy on 11 March 2013, 21:09:58 UTC, committed by Terry Jan Reedy on 11 March 2013, 21:09:58 UTC
found by Serhiy Storchaka and Matthew Barnett
1 parent 617e2c1
Raw File
Tip revision: 6bf9b858597303448844b1c84de5d32d9dd0b565 authored by Terry Jan Reedy on 11 March 2013, 21:09:58 UTC
Issue #17047: removed doubled words in Doc/*, Mac/*, and Tool/*
Tip revision: 6bf9b85
dbhash.py
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""

import sys
import warnings
warnings.warnpy3k("in 3.x, the dbhash module has been removed", stacklevel=2)
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