home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_410 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  626 b   |  24 lines

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