source: trunk/essentials/dev-lang/python/Lib/dbhash.py

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 404 bytes
Line 
1"""Provide a (g)dbm-compatible interface to bsddb.hashopen."""
2
3import sys
4try:
5 import bsddb
6except ImportError:
7 # prevent a second import of this module from spuriously succeeding
8 del sys.modules[__name__]
9 raise
10
11__all__ = ["error","open"]
12
13error = bsddb.error # Exported for anydbm
14
15def open(file, flag = 'r', mode=0666):
16 return bsddb.hashopen(file, flag, mode)
Note: See TracBrowser for help on using the repository browser.