Staging
v0.5.1
https://github.com/python/cpython
Revision 98935bff0af8b65d52cd849981e5eb020f3a1a56 authored by Guido van Rossum on 05 September 2001, 19:13:16 UTC, committed by Guido van Rossum on 05 September 2001, 19:13:16 UTC
I don't know what difference it makes, but '/' indeed makes less sense
as an include dir than '.', so I'm changing the default.  Just so I
can close the bug. ;-)
1 parent 97bac53
Raw File
Tip revision: 98935bff0af8b65d52cd849981e5eb020f3a1a56 authored by Guido van Rossum on 05 September 2001, 19:13:16 UTC
SF bug #427073: DLINCLDIR defined incorrectly (Skip Montanaro).
Tip revision: 98935bf
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 = 'r', mode=0666):
    return bsddb.hashopen(file, flag, mode)
back to top