home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / DBHASH.PY < prev    next >
Encoding:
Python Source  |  2000-09-28  |  228 b   |  9 lines

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