Staging
v0.5.1
https://github.com/python/cpython
Revision 5610c7e34b00a58f9d063df1113d440a3512e1b9 authored by Mark Hammond on 03 December 2003, 01:21:01 UTC, committed by Mark Hammond on 03 December 2003, 01:21:01 UTC
1 parent 441c214
Raw File
Tip revision: 5610c7e34b00a58f9d063df1113d440a3512e1b9 authored by Mark Hammond on 03 December 2003, 01:21:01 UTC
Fix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenames
Tip revision: 5610c7e
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