home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 56 / CDPowerplay56Disc2.iso / demos / blade / data1.cab / Program_Executable_Files / Lib / PythonLib / dbhash.py < prev    next >
Encoding:
Python Source  |  2000-10-27  |  186 b   |  9 lines

  1. """Provide a (g)dbm-compatible interface to bsdhash.hashopen."""
  2.  
  3. import bsddb
  4.  
  5. error = bsddb.error
  6.  
  7. def open(file, flag, mode=0666):
  8.     return bsddb.hashopen(file, flag, mode)
  9.