0001 """Provide a (g)dbm-compatible interface to bsddb.hashopen.""" 0002 0003 import sys 0004 try: 0005 import bsddb 0006 except ImportError: 0007 # prevent a second import of this module from spuriously succeeding 0008 del sys.modules[__name__] 0009 raise 0010 0011 __all__ = ["error","open"] 0012 0013 error = bsddb.error # Exported for anydbm 0014 0015 def open(file, flag = 'r', mode=0666): 0016 return bsddb.hashopen(file, flag, mode) 0017
Generated by PyXR 0.9.4