Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6700142

Browse files
committed
backward compatible interface for bsddb
1 parent 0182c06 commit 6700142

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Lib/dbhash.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"""Provide a (g)dbm-compatible interface to bsdhash.hashopen."""
2+
3+
import bsddb
4+
5+
error = bsddb.error
6+
7+
def open(file, flag, mode):
8+
return bsddb.hashopen(file, flag, mode)

0 commit comments

Comments
 (0)