Staging
v0.8.1
https://github.com/python/cpython
Revision 11852734a576221ecd71738b08874f6fd44e85bb authored by Ned Deily on 05 November 2013, 10:40:03 UTC, committed by Ned Deily on 05 November 2013, 10:40:03 UTC
Some third-party projects, such as matplotlib and PIL/Pillow,
depended on being able to build with Tcl and Tk frameworks in
/Library/Frameworks.  They were unable to build with the built-in
Tcl/Tk and/or execute correctly.
1 parent cbcb1e8
Raw File
Tip revision: 11852734a576221ecd71738b08874f6fd44e85bb authored by Ned Deily on 05 November 2013, 10:40:03 UTC
Issue #15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6.
Tip revision: 1185273
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