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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import types
  5.  
  6. def init_fakemod_dict(fm, adict = None):
  7.     dct = { }
  8.     dct.setdefault('__nonzero__', (lambda : True))
  9.     dct.setdefault('__file__', __file__)
  10.     if adict is not None:
  11.         dct.update(adict)
  12.     
  13.     fm.__dict__.clear()
  14.     fm.__dict__.update(dct)
  15.  
  16.  
  17. class FakeModule(types.ModuleType):
  18.     
  19.     def __init__(self, adict = None):
  20.         self._FakeModule__iptmp = None
  21.         del self._FakeModule__iptmp
  22.         init_fakemod_dict(self, adict)
  23.  
  24.  
  25.