Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
bae1b94d9e0a1d1e5264ce08be236efbfb649d60
/
.
/
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
)