Saved and restored logging._handlerList at the same time as saving/restoring logging...
[python.git] / Lib / dbhash.py
blob9f8a9c3f28bb27e1d67a8bb8c3253feb31ecb894
1 """Provide a (g)dbm-compatible interface to bsddb.hashopen."""
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
11 __all__ = ["error","open"]
13 error = bsddb.error # Exported for anydbm
15 def open(file, flag = 'r', mode=0666):
16 return bsddb.hashopen(file, flag, mode)