home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_262 / dbhash.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-09-09  |  595 b   |  22 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.7)
  3.  
  4. import sys
  5. import warnings
  6. warnings.warnpy3k('in 3.x, the dbhash module has been removed', stacklevel = 2)
  7.  
  8. try:
  9.     import bsddb
  10. except ImportError:
  11.     del sys.modules[__name__]
  12.     raise 
  13.  
  14. __all__ = [
  15.     'error',
  16.     'open']
  17. error = bsddb.error
  18.  
  19. def open(file, flag = 'r', mode = 438):
  20.     return bsddb.hashopen(file, flag, mode)
  21.  
  22.