Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
bebfbe2d1138216a5023ce067f6d1fbc29a437c6
/
.
/
Lib
/
dbm
/
bsd.py
blob: 2dccadb8b1e4666ed6fbd01e30e9a7a583386829 [
file
] [
log
] [
blame
]
"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
import
bsddb
__all__
=
[
"error"
,
"open"
]
class
error
(
bsddb
.
error
,
IOError
):
pass
def
open
(
file
,
flag
=
'r'
,
mode
=
0o666
):
return
bsddb
.
hashopen
(
file
,
flag
,
mode
)