backward compatible interface for bsddb

This commit is contained in:
Guido van Rossum 1996-01-25 18:33:39 +00:00
parent 0182c068ab
commit 6700142d83
1 changed files with 8 additions and 0 deletions

8
Lib/dbhash.py Normal file
View File

@ -0,0 +1,8 @@
"""Provide a (g)dbm-compatible interface to bsdhash.hashopen."""
import bsddb
error = bsddb.error
def open(file, flag, mode):
return bsddb.hashopen(file, flag, mode)