home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 January / Gamestar_80_2006-01_dvd.iso / Dema / Civilization4 / data1.cab / Civ4DemoComponent / Assets / Python / System / dbhash.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2005-11-09  |  606 b   |  21 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. '''Provide a (g)dbm-compatible interface to bsddb.hashopen.'''
  5. import sys
  6.  
  7. try:
  8.     import bsddb
  9. except ImportError:
  10.     del sys.modules[__name__]
  11.     raise 
  12.  
  13. __all__ = [
  14.     'error',
  15.     'open']
  16. error = bsddb.error
  17.  
  18. def open(file, flag = 'r', mode = 438):
  19.     return bsddb.hashopen(file, flag, mode)
  20.  
  21.