mirror of
https://github.com/python/cpython.git
synced 2025-07-26 04:34:20 +00:00
11 lines
236 B
Python
11 lines
236 B
Python
"""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)
|