repo.or.cz
/
python
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Clarify portability and main program.
[python/dscho.git]
/
Lib
/
dbhash.py
blob
f440fd52974c1e290eac6be4a9b1a98f848c9f3a
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
=
0666
):
8
return
bsddb
.
hashopen
(
file
,
flag
,
mode
)