Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
dbhash.py
Go to the documentation of this file.
1 """Provide a (g)dbm-compatible interface to bsdhash.hashopen."""
2 
3 import sys
4 try:
5  import bsddb
6 except 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 
13 error = bsddb.error # Exported for anydbm
14 
15 def open(file, flag = 'r', mode=0666):
16  return bsddb.hashopen(file, flag, mode)